diff options
author | Vladimír Čunát <v@cunat.cz> | 2021-07-16 10:35:56 +0200 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2021-07-16 10:35:56 +0200 |
commit | 1e9175815bff54995d71136a5b330196b987ea72 (patch) | |
tree | 9f2928384c8ec93228134ddf678dbc8454a6c410 /pkgs/development/interpreters | |
parent | 3b437b95dfd1ce5dc6d471975df849c4c1e5b34b (diff) | |
parent | 1f2b1f3bb03674fd181444848452c32407afab5b (diff) | |
download | nixlib-1e9175815bff54995d71136a5b330196b987ea72.tar nixlib-1e9175815bff54995d71136a5b330196b987ea72.tar.gz nixlib-1e9175815bff54995d71136a5b330196b987ea72.tar.bz2 nixlib-1e9175815bff54995d71136a5b330196b987ea72.tar.lz nixlib-1e9175815bff54995d71136a5b330196b987ea72.tar.xz nixlib-1e9175815bff54995d71136a5b330196b987ea72.tar.zst nixlib-1e9175815bff54995d71136a5b330196b987ea72.zip |
Merge #129669: cpython: disable features on darwin
... to fix the build (merging into staging-next)
Diffstat (limited to 'pkgs/development/interpreters')
-rw-r--r-- | pkgs/development/interpreters/python/cpython/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/interpreters/python/cpython/default.nix b/pkgs/development/interpreters/python/cpython/default.nix index 842d132fd44c..f52255f4748b 100644 --- a/pkgs/development/interpreters/python/cpython/default.nix +++ b/pkgs/development/interpreters/python/cpython/default.nix @@ -40,10 +40,12 @@ , static ? stdenv.hostPlatform.isStatic , enableOptimizations ? false # enableNoSemanticInterposition is a subset of the enableOptimizations flag that doesn't harm reproducibility. -, enableNoSemanticInterposition ? true +# clang starts supporting `-fno-sematic-interposition` with version 10 +, enableNoSemanticInterposition ? (!stdenv.cc.isClang || (stdenv.cc.isClang && lib.versionAtLeast stdenv.cc.version "10")) # enableLTO is a subset of the enableOptimizations flag that doesn't harm reproducibility. # enabling LTO on 32bit arch causes downstream packages to fail when linking -, enableLTO ? stdenv.is64bit +# enabling LTO on *-darwin causes python3 to fail when linking. +, enableLTO ? stdenv.is64bit && stdenv.isLinux , reproducibleBuild ? true , pythonAttr ? "python${sourceVersion.major}${sourceVersion.minor}" }: |