-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
ghc: really use ld.gold #80466
ghc: really use ld.gold #80466
Conversation
@adamse Thanks for taking the time to send a PR for this. Could explain a little more what this does? From what I can tell, the original code had attempted to get GHC to use If this is correct, then it seems like it will be a pretty big change if we switch the linker we use for all our haskell packages? Did you try recompiling a bunch of the Haskell package set with this change? Did anything break? Also, if I wanted to test this, what's the best way for me to test that GHC is actually using |
The end result of this PR is that ghc will pass To confirm that ld.gold is used we can look at
after this change. We can also confirm it by looking at the I've built the lens library (with dependencies) with 8.8.2. I've also fired off a |
@adamse Thanks for the explanation. That all seems pretty reasonable. This PR looks good to me, and the testing you've done sounds pretty good. However, it would be nice to have someone like @matthewbauer / @Ericson2314 / @peti take a look at this as well. I guess it is entirely possible |
Looking forward to this |
ghc-8.8.3: really use ld.gold (port #80466)
(cherry picked from commit ff6aeef) Signed-off-by: Domen Kožar <[email protected]>
Motivation for this change
The changes to use
ld.gold
in other scenarios than aarch32 had not been propagated fully. This change makes sure ghc will call gcc with-fuse-ld=gold
.Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)