summary refs log tree commit diff
path: root/pkgs/development/interpreters
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2021-07-17 07:38:25 +0200
committerJörg Thalheim <joerg@thalheim.io>2021-07-17 07:38:25 +0200
commit08846decc930d81c97f6ca9b5442c14db721ef92 (patch)
tree3fdc7ec21586022c8fba076417a8157d88b07871 /pkgs/development/interpreters
parent8e4bb160cb7dc47555ec332996cf54e8ea1c0183 (diff)
parent6d11e6d03e043373ad9fe20033940339354562de (diff)
downloadnixpkgs-08846decc930d81c97f6ca9b5442c14db721ef92.tar
nixpkgs-08846decc930d81c97f6ca9b5442c14db721ef92.tar.gz
nixpkgs-08846decc930d81c97f6ca9b5442c14db721ef92.tar.bz2
nixpkgs-08846decc930d81c97f6ca9b5442c14db721ef92.tar.lz
nixpkgs-08846decc930d81c97f6ca9b5442c14db721ef92.tar.xz
nixpkgs-08846decc930d81c97f6ca9b5442c14db721ef92.tar.zst
nixpkgs-08846decc930d81c97f6ca9b5442c14db721ef92.zip
Merge remote-tracking branch 'upstream/staging-next' into HEAD
Diffstat (limited to 'pkgs/development/interpreters')
-rw-r--r--pkgs/development/interpreters/python/cpython/default.nix6
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 842d132fd44..f52255f4748 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}"
 }: