lix: only use LTO with GCC (#353576)

authored by

jade and committed by
GitHub
ff797c2b d2a665f7

+1 -1
+1 -1
pkgs/tools/package-management/lix/common.nix
··· 190 190 [ 191 191 # Enable LTO, since it improves eval performance a fair amount 192 192 # LTO is disabled on static due to strange linking errors 193 - (lib.mesonBool "b_lto" (!stdenv.hostPlatform.isStatic)) 193 + (lib.mesonBool "b_lto" (!stdenv.hostPlatform.isStatic && stdenv.cc.isGNU)) 194 194 (lib.mesonEnable "gc" true) 195 195 (lib.mesonBool "enable-tests" true) 196 196 (lib.mesonBool "enable-docs" enableDocumentation)