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

ocamlbuild always rebuilds .cmxs #5100

Closed
vicuna opened this issue Jul 10, 2010 · 0 comments
Closed

ocamlbuild always rebuilds .cmxs #5100

vicuna opened this issue Jul 10, 2010 · 0 comments

Comments

@vicuna
Copy link

vicuna commented Jul 10, 2010

Original bug ID: 5100
Reporter: @dbuenzli
Assigned to: @xclerc
Status: closed (set by @xavierleroy on 2012-03-24T14:01:42Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.12.0+beta1 or 3.12.0+rc1
Fixed in version: 3.12.1+dev
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Monitored by: @dbuenzli

Bug description

ocamlbuild systematically rebuilds a cmxs file even if the cmx defining its content didn't change.

Steps to reproduce

cd /tmp/
touch bla.ml
ocamlbuild bla.cmxs
Finished, 4 targets (0 cached) in 00:00:00.
ocamlbuild -nothing-should-be-rebuilt bla.cmxs
cache miss: a product is not in build dir (bla.so)
Exception
Rule.Exit_rule_error("Need to rebuild [ bla.cmxs; bla.so ] through the rule `ocaml: cmx & o -> cmxs & so (%=bla )'").
Compilation unsuccessful after building 3 targets (3 cached) in 00:00:00.

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