lol
fork

Configure Feed

Select the types of activity you want to include in your feed.

python311Packages.nuitka: default to lto off for darwin

Rob d5965022 4d32327b

+18 -3
+15
pkgs/development/python-modules/nuitka/darwin-lto.patch
··· 1 + diff --git a/nuitka/build/SconsCompilerSettings.py b/nuitka/build/SconsCompilerSettings.py 2 + index 319b72c4e..89d40f2a2 100644 3 + --- a/nuitka/build/SconsCompilerSettings.py 4 + +++ b/nuitka/build/SconsCompilerSettings.py 5 + @@ -173,8 +173,8 @@ def _enableLtoSettings( 6 + lto_mode = False 7 + reason = "known to be not supported (CondaCC)" 8 + elif isMacOS() and env.gcc_mode and env.clang_mode: 9 + - lto_mode = True 10 + - reason = "known to be supported (macOS clang)" 11 + + lto_mode = False 12 + + reason = "known to not be supported (macOS nix clang)" 13 + elif env.mingw_mode and env.clang_mode: 14 + lto_mode = False 15 + reason = "known to not be supported (new MinGW64 Clang)"
+3 -3
pkgs/development/python-modules/nuitka/default.nix
··· 1 1 { lib 2 - , stdenv 3 2 , buildPythonPackage 4 3 , ccache 5 4 , fetchFromGitHub ··· 22 21 hash = "sha256-spa3V9KEjqmwnHSuxLLIu9hJk5PrRwNyOw72sfxBVKo="; 23 22 }; 24 23 24 + # default lto off for darwin 25 + patches = [ ./darwin-lto.patch ]; 26 + 25 27 nativeBuildInputs = [ setuptools ]; 26 28 nativeCheckInputs = [ ccache ]; 27 29 ··· 44 46 disabled = isPyPy; 45 47 46 48 meta = with lib; { 47 - # tests fail with linker errors on darwin 48 - broken = stdenv.isDarwin; 49 49 description = "Python compiler with full language support and CPython compatibility"; 50 50 license = licenses.asl20; 51 51 homepage = "https://nuitka.net/";