cctools: support LTO on Darwin#46730
Merged
copumpkin merged 1 commit intoNixOS:stagingfrom Sep 17, 2018
Merged
Conversation
LTO is disabled during bootstrap to keep the bootstrap tools small and avoid unnecessary LLVM rebuilds, but is enabled in the final stdenv stage and should be usable by normal packages.
Member
Author
|
Once I get Hydra to build this, I'll make a third commit switching the bootstrap tools package, and then we'll be all set. |
Member
Author
|
@dipinhora it turns out we got rid of a lot of the annoying rpath stuff since your PR, so it got quite a bit simpler. Unlike your PR, I haven't touched the myriad LLVM versions yet; I was trying to keep the change small. I'll probably make a follow-up PR fixing up the other LLVMs at some point. Feedback welcome! Also, thanks you for your old PR and sorry it took us so long to get around to this, even if we're not using your literal diffs. |
Member
Author
|
This seems pretty low-risk so I might go ahead and merge in the next hour or so if nobody objects |
matthewbauer
approved these changes
Sep 17, 2018
Member
Author
|
Thanks! |
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
LTO is disabled during bootstrap to keep the bootstrap tools small and avoid unnecessary LLVM rebuilds, but is enabled in the final stdenv stage and should be usable by normal packages.
Motivation for this change
Enables better optimization if packages want it. Also, why not? 😄
Things done
sandboxinnix.confon non-NixOS)nix-shell -p nox --run "nox-review wip"./result/bin/)nix path-info -Sbefore and after)