mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
Merge pull request #12324 from NixOS/disable-lto
x86_64-darwin: Disable LTO
This commit is contained in:
commit
069ca2a21a
1 changed files with 2 additions and 0 deletions
|
@ -79,6 +79,8 @@ let
|
||||||
!stdenv.hostPlatform.isWindows
|
!stdenv.hostPlatform.isWindows
|
||||||
# build failure
|
# build failure
|
||||||
&& !stdenv.hostPlatform.isStatic
|
&& !stdenv.hostPlatform.isStatic
|
||||||
|
# LTO breaks exception handling on x86-64-darwin.
|
||||||
|
&& stdenv.system != "x86_64-darwin"
|
||||||
) ''
|
) ''
|
||||||
case "$mesonBuildType" in
|
case "$mesonBuildType" in
|
||||||
release|minsize) appendToVar mesonFlags "-Db_lto=true" ;;
|
release|minsize) appendToVar mesonFlags "-Db_lto=true" ;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue