Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004611OCamlOCamlbuild (the tool)public2008-09-06 01:402012-09-10 14:05
Reporterjessicah 
Assigned Toxclerc 
PrioritynormalSeveritymajorReproducibilityalways
StatusassignedResolutionno change required 
PlatformOSOS Version
Product Version3.10.2 
Target Version4.00.2+devFixed in Version 
Summary0004611: Dependencies not built despite matching tags
DescriptionI have a line like below in my ocamlbuild plugin, which doesn't get triggered when cmi files are tagged with use_custom_compiler. Even though the set of the tags when using 'ocamlbuild -show-tags <target.cmi>' is a superset of the tags in the below dependency rule, the dependencies are ignored. However, the dependency rule behaves as expected for .cmx files.

The solution was to remove "compile" from the set of tags for the dependency.

dep ["ocaml"; "compile"; "use_custom_compiler"] ["ocamlopt.opt"; "ocamloptcomp.ml"]
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0004598)
ertai (developer)
2008-09-06 11:32

By removing "compile" you allow the flags to be added to linking, ocamldoc, preprocessing...

Moreover by looking at your flags "ocamlopt.opt", I assume that's the command, and not a flag. In that case you should look a virtual commands that allow you to the ocaml compiler (look at myocamlbuild.ml in the root of the ocaml sources).

- Issue History
Date Modified Username Field Change
2008-09-06 01:40 jessicah New Issue
2008-09-06 11:32 ertai Note Added: 0004598
2008-09-06 11:32 ertai Resolution open => no change required
2008-09-10 12:51 doligez Status new => assigned
2008-09-10 12:51 doligez Assigned To => ertai
2010-07-22 11:46 ertai Assigned To ertai => xclerc
2012-02-02 15:17 protz Category OCamlbuild => OCamlbuild (the tool)
2012-07-06 16:38 doligez Target Version => 4.01.0+dev
2012-07-31 13:36 doligez Target Version 4.01.0+dev => 4.00.1+dev
2012-09-10 14:05 frisch Target Version 4.00.1+dev => 4.00.2+dev


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker