Skip to content

Commit b09b4dc

Browse files
committed
x86_64-darwin: Disable LTO
LTO on x86_64-darwin appears to break the ability to catch exceptions correctly (maybe just for exception types defined in different libraries). This leads to many weird test failures, e.g. https://hydra.nixos.org/build/286312387 and https://hydra.nixos.org/build/286312341.
1 parent b8c296f commit b09b4dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packaging/dependencies.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ let
7979
!stdenv.hostPlatform.isWindows
8080
# build failure
8181
&& !stdenv.hostPlatform.isStatic
82+
# LTO breaks exception handling on x86-64-darwin.
83+
&& stdenv.system != "x86_64-darwin"
8284
) ''
8385
case "$mesonBuildType" in
8486
release|minsize) appendToVar mesonFlags "-Db_lto=true" ;;

0 commit comments

Comments
 (0)