Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possibility to call ocamlbuild from a sub-directory #5227

Closed
vicuna opened this issue Feb 18, 2011 · 3 comments
Closed

possibility to call ocamlbuild from a sub-directory #5227

vicuna opened this issue Feb 18, 2011 · 3 comments

Comments

@vicuna
Copy link

vicuna commented Feb 18, 2011

Original bug ID: 5227
Reporter: daweil
Status: resolved (set by @damiendoligez on 2017-03-03T15:10:58Z)
Resolution: suspended
Priority: normal
Severity: feature
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Monitored by: @gasche

Bug description

I'm working on a multi-directory project for example :
+-+- A/
| +- a1.ml
| +- ...
| +- aN.ml
|
+-+- B/
| +- b1.ml
| +- ...
| +- bN.ml
|
+-+- Main/
+- main.ml (depending on a.cma and b.cma)

So far, the only way to compile my project is to call ocamlbuild from root directory.
While I'm editing b1.ml in directory B, I would like to compile it with the command "ocamlbuild b1.cmo". This is not possible so far : I have to go in root directory and type "ocamlbuild B/b1.ml".
My wish would be something like a "-root" option to specific from which parent directory ocamlbuild should be called.

@vicuna
Copy link
Author

vicuna commented Feb 18, 2011

Comment author: daweil

I tried to modify myself the source code by adding a -root-dir option in ocamlbuild/options.ml but I could find myself where to make the call to Sys.chdir (or Shell.chdir)...

@vicuna
Copy link
Author

vicuna commented Feb 20, 2017

Comment author: @xavierleroy

Un-assigning from xclerc

@vicuna
Copy link
Author

vicuna commented Mar 3, 2017

Comment author: @damiendoligez

ocamlbuild is now a separate project that lives on GitHub.
PR transferred to ocaml/ocamlbuild#218

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant