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

Dependencies not built despite matching tags #4611

Closed
vicuna opened this issue Sep 5, 2008 · 2 comments
Closed

Dependencies not built despite matching tags #4611

vicuna opened this issue Sep 5, 2008 · 2 comments

Comments

@vicuna
Copy link

vicuna commented Sep 5, 2008

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"]

@vicuna
Copy link
Author

vicuna commented Sep 6, 2008

Comment author: ertai

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

@vicuna
Copy link
Author

vicuna commented Jun 16, 2013

Comment author: @gasche

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

@vicuna vicuna closed this as completed Dec 7, 2016
@vicuna vicuna added this to the 4.02.0 milestone Mar 14, 2019
@vicuna vicuna added the bug label Mar 19, 2019
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