python3: only enable LTO for 64bit builds
Avoid failures with 32bit builds: ``` cc1: error: LTO support has not been enabled in this configuration ```
This commit is contained in:
committed by
Jonathan Ringer
parent
410c0b7a0b
commit
07571e7ae5
@@ -42,7 +42,8 @@
|
||||
# enableNoSemanticInterposition is a subset of the enableOptimizations flag that doesn't harm reproducibility.
|
||||
, enableNoSemanticInterposition ? true
|
||||
# enableLTO is a subset of the enableOptimizations flag that doesn't harm reproducibility.
|
||||
, enableLTO ? true
|
||||
# enabling LTO on 32bit arch causes downstream packages to fail when linking
|
||||
, enableLTO ? stdenv.is64bit
|
||||
, reproducibleBuild ? true
|
||||
, pythonAttr ? "python${sourceVersion.major}${sourceVersion.minor}"
|
||||
}:
|
||||
|
||||
Reference in New Issue
Block a user