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
Feature/ghc gmp #43711
Feature/ghc gmp #43711
Conversation
] ++ stdenv.lib.optional (targetPlatform == hostPlatform && hostPlatform.libc != "glibc" && !targetPlatform.isWindows) [ | ||
] ++ stdenv.lib.optional (targetPlatform == hostPlatform && !enableIntegerSimple) [ | ||
"--with-gmp-includes=${targetPackages.gmp.dev}/include" "--with-gmp-libraries=${targetPackages.gmp.out}/lib" | ||
]) ++ stdenv.lib.optional (targetPlatform == hostPlatform && hostPlatform.libc != "glibc" && !targetPlatform.isWindows) [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The extra )
appears to be a typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, fat-fingered that :(
How did you test these changes? Do |
I've only tested this with a mingw cross compiler. That is, I built the full ghc on the host:macOS, and a cross compiler:macOS -> mingw. GHC needs one integer library be it integer-simple or integer-gmp. GHC also has an |
Do Also, could you please verify that those builds that are supposed to use the gmp-based integer library actually do so? The patch causes re-builds on all platforms, not just the interger-simple ones, so I reckon it might be a good idea to make sure there's no regression. |
@peti Err the point of this is the GMP ones, not the integer simple ones. GMP was just being inferred by default before, and that inferred (on the GHC side) happened to be unreliable (in the cross case). This forces the build system to use GMP when we want it to. By contrast, I'm not sure why anything has changed for the integer-simple builds, unless those happen to depend on the GMP ones for some reason and thus are downstream rebuilds. |
Yes, I understand what the change intends to do. I guess I was simply suggesting that it might be a good idea that that actually does what it's supposed to do and nothing else. Anyhow, I'll trust your judgement. Proceed as you think would be best. |
@matthewbauer Please use staging in the future. |
Ok - will do that next time. Is that recommended for GHC though? Basically any change will be 500+ (no stdenv changes). |
I think it's best to use https://discourse.nixos.org/t/the-haskell-infrastructure-needs-new-maintainers/545/11 |
Ok sounds good. Sorry for any inconvenience. |
Motivation for this change
Broken out of #43559
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)