Skip to content

Commit

Permalink
Merge #129669: cpython: disable features on darwin
Browse files Browse the repository at this point in the history
... to fix the build (merging into staging-next)
  • Loading branch information
vcunat committed Jul 16, 2021
2 parents 3b437b9 + 1f2b1f3 commit 1e91758
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkgs/development/interpreters/python/cpython/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}:
Expand Down

0 comments on commit 1e91758

Please sign in to comment.