Skip to content
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

Enable LTO by default on all platforms #247

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amiryalsa
Copy link

The old comment by @lrworth was spot on, but ended up drowning under further discussion, which led to LTO being enabled only on Darwin by default except in Nix. While my prime motivation was sorting it out for Nix, I ended up spotting the error for all platforms. 🤷

When LTO was first introduced in commit 55a7a94 (Enable LTO and -march=native,
2019-05-29), it was enabled by default on all platforms. Now that it is no
longer broken in Nix on Darwin, this old default may be restored.

The reported upstream issue (NixOS/nixpkgs#19098) has
been resolved and the fix is already included in the `nixpkgs-unstable` branch.

This also enables LTO again on platforms other than Darwin, where it was
unintentionally disabled by default due to a programming error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants