Skip to content

Commit

Permalink
[Backport release-24.11] lix: only use LTO with GCC (#362720)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksanaa authored Dec 7, 2024
2 parents 76dc236 + d57b827 commit 70954e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/tools/package-management/lix/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ stdenv.mkDerivation {
[
# Enable LTO, since it improves eval performance a fair amount
# LTO is disabled on static due to strange linking errors
(lib.mesonBool "b_lto" (!stdenv.hostPlatform.isStatic))
(lib.mesonBool "b_lto" (!stdenv.hostPlatform.isStatic && stdenv.cc.isGNU))
(lib.mesonEnable "gc" true)
(lib.mesonBool "enable-tests" true)
(lib.mesonBool "enable-docs" enableDocumentation)
Expand Down

0 comments on commit 70954e9

Please sign in to comment.