Skip to content

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