-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
coq: add support for -native-compiler yes #224110
base: master
Are you sure you want to change the base?
coq: add support for -native-compiler yes #224110
Conversation
I'm surprised. Did you test that the packages actually build with native correctly? I would have expected OCaml to become a propagated dependency when Coq is in native-compiler=yes mode. I have also some concerns regarding the naming choice for the derivation argument / attributes. People that are not well-informed might think that "native" is something much more basic (e.g., building Coq with One way to test this PR would be to open a test PR on the coq-nix-toolbox where you add another (and then you regenerate the nix actions with |
Great! Indeed, it would be nice to test this on coq-nix-toolbox. |
@Zimmi48 I did not test any native builds other than the stdlib yet. It's entirely possible I will have to make OCaml a propagated build.
Absolutely. I think renaming to I'll look into making a coq-nix-toolbox PR. |
Result of 23 packages failed to build:
124 packages built:
|
The PR will need some documentation, especially in the case where the native version is not available as attributes by default. |
Those are a bit worrying (mathcomp works in Coq CI for instance). |
@proux01 I didn't investigate what went wrong yet, but likely a missing dependency. |
f49e3c3
to
2a85941
Compare
2a85941
to
d67a602
Compare
Signed-off-by: Ali Caglayan <[email protected]>
Signed-off-by: Ali Caglayan <[email protected]>
d67a602
to
ccc8699
Compare
The change to compcert is wrong. Also you may want to fix #34657 before (possible fixes include: resolve the path to the compilers at (coq) build time; wrap the coq binaries). |
Description of changes
This patch adds support for enabling
-native-compiler yes
for Coq. As a result I have duplicated all the Coq packages for when we have the native compiler enabled. This is somewhat analogous to enabling flambda for OCaml, although there we don't have such a package set.I am still uncertain if we want the extra package sets and I think we could probably deduplicate some things, but I am not sure if that is something we would want to do.
cc @NixOS/coq and perhaps @CohenCyril and @proux01 if they are interested.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)