-
Notifications
You must be signed in to change notification settings - Fork 400
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
--release
for pure Coq code affects flags and triggers rebuild
#4553
Comments
Thanks, this is indeed a bug, and fortunately quite easy to solve I think if you look at coq_rules |
Ah, I should have mentioned my dune-project has
Bumping to 2.8 and 0.3 works around the problem, which is consistent with the code I see. It seems the bug is in this code, which for 0.2 should use
(but I wouldn't immediately know how to get to the config, so don't wait for me for a fix). EDIT: so this might come from #4224. |
Yup, thanks a lot for the analysis, it is correct. |
Works around ocaml/dune#4553.
From my latest testing this is not a problem today, even if I'm not sure when this was fixed. |
It was fixed on some flags rework, I think when I fixed the By the way, I'd be nice to have a test suite entry for this. |
Expected Behavior
Since Coq code cannot be optimized, passing
--release
should not trigger a rebuild of.v
files.Actual Behavior
-w -native-compiler-disabled -native-compiler ondemand
is passed for normal builds but not--release
builds, triggering a rebuild.Reproduction
dune build --cache=disabled --display=verbose theories/lang/prelude/notations.vo &> build-normal
dune build --cache=disabled --display=verbose theories/lang/prelude/notations.vo -p coq-cpp2v &> build-release
The code was a version of https://github.com/bedrocksystems/cpp2v but I can minimize.
Specifications
dune
(output ofdune --version
): 2.8.5ocaml
(output ofocamlc --version
): 4.07.1Additional information
dune
with the--verbose
flag):https://gist.github.com/Blaisorblade/ef78b996624c42702d13886101342b41
The text was updated successfully, but these errors were encountered: