Merge pull request #164174 from ReplayCoding/fix/python-llvm-pgo

This commit is contained in:
Martin Weinelt 2022-06-01 11:07:54 +02:00 committed by GitHub
commit a9377b6919
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,9 +63,6 @@ assert x11Support -> tcl != null
assert bluezSupport -> bluez != null;
assert lib.assertMsg (enableOptimizations -> (!stdenv.cc.isClang))
"Optimizations with clang are not supported. configure: error: llvm-profdata is required for a --enable-optimizations build but could not be found.";
assert lib.assertMsg (reproducibleBuild -> stripBytecode)
"Deterministic builds require stripping bytecode.";
@ -115,7 +112,7 @@ let
] ++ optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
buildPackages.stdenv.cc
pythonForBuild
] ++ optionals (stdenv.cc.isClang && enableLTO) [
] ++ optionals (stdenv.cc.isClang && (enableLTO || enableOptimizations)) [
stdenv.cc.cc.libllvm.out
];