Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005227OCamlOCamlbuild (the tool)public2011-02-18 10:292013-07-28 23:12
Reporterdaweil 
Assigned Toxclerc 
PrioritynormalSeverityfeatureReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0005227: possibility to call ocamlbuild from a sub-directory
DescriptionI'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.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0005824)
daweil (reporter)
2011-02-18 16:26

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)...

- Issue History
Date Modified Username Field Change
2011-02-18 10:29 daweil New Issue
2011-02-18 16:26 daweil Note Added: 0005824
2011-05-17 16:15 doligez Status new => acknowledged
2011-06-06 13:02 xclerc Status acknowledged => assigned
2011-06-06 13:02 xclerc Assigned To => xclerc
2012-02-02 15:17 protz Category OCamlbuild => OCamlbuild (the tool)


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker