cpython: disable no-semantic-interposition with older clang versions
> clang-7: error: unknown argument: '-fno-semantic-interposition' This primarily affects current darwin builds, but as soon as they migrate to a newer clang version they will immediately start benefitting from this change.
This commit is contained in:
parent
c786eaf612
commit
fac5757eec
1 changed files with 2 additions and 1 deletions
|
@ -40,7 +40,8 @@
|
||||||
, static ? stdenv.hostPlatform.isStatic
|
, static ? stdenv.hostPlatform.isStatic
|
||||||
, enableOptimizations ? false
|
, enableOptimizations ? false
|
||||||
# enableNoSemanticInterposition is a subset of the enableOptimizations flag that doesn't harm reproducibility.
|
# 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.
|
# 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
|
# enabling LTO on 32bit arch causes downstream packages to fail when linking
|
||||||
, enableLTO ? stdenv.is64bit
|
, enableLTO ? stdenv.is64bit
|
||||||
|
|
Loading…
Reference in a new issue