You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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)...
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.
The text was updated successfully, but these errors were encountered: