nixpkgs/pkgs/development/python-modules/nuitka/darwin-lto.patch

16 lines
704 B
Diff

diff --git a/nuitka/build/SconsCompilerSettings.py b/nuitka/build/SconsCompilerSettings.py
index 319b72c4e..89d40f2a2 100644
--- a/nuitka/build/SconsCompilerSettings.py
+++ b/nuitka/build/SconsCompilerSettings.py
@@ -173,8 +173,8 @@ def _enableLtoSettings(
lto_mode = False
reason = "known to be not supported (CondaCC)"
elif isMacOS() and env.gcc_mode and env.clang_mode:
- lto_mode = True
- reason = "known to be supported (macOS clang)"
+ lto_mode = False
+ reason = "known to not be supported (macOS nix clang)"
elif env.mingw_mode and env.clang_mode:
lto_mode = False
reason = "known to not be supported (new MinGW64 Clang)"