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: 4611 Reporter: jessicah Assigned to:@xclerc Status: closed (set by @xavierleroy on 2016-12-07T10:34:31Z) Resolution: unable to duplicate Priority: normal Severity: minor Version: 3.10.2 Target version: 4.02.0+dev Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Bug description
I 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"]
The text was updated successfully, but these errors were encountered:
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).
I don't understand what the intended semantics of the line shown in the report is, so I'm not sure whether there is an underlying OCaml issue (and in that case how to reproduce it), or a misuse of the tool. Given that this bug is quite old, my first move was to close the report, but I suppose bug reporters are rather patient :)
Jessicah, could you provide more information about how to reproduce the problem? For example, an archive of a small directory with self-contained files and myocamlbuild allowing to reproduce the problem?
(If this issue hasn't advanced by the time we triage bug for 4.02, it should probably be resolved.)
Original bug ID: 4611
Reporter: jessicah
Assigned to: @xclerc
Status: closed (set by @xavierleroy on 2016-12-07T10:34:31Z)
Resolution: unable to duplicate
Priority: normal
Severity: minor
Version: 3.10.2
Target version: 4.02.0+dev
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Bug description
I 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"]
The text was updated successfully, but these errors were encountered: