Skip to content

Commit 396b831

Browse files
pythongh-117752: Autoconf: store all LLVM profile data in the build directory (python#117790)
This prevents spurious 'env changed' and llvm-profdata merge errors.
1 parent fd259fd commit 396b831

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

configure

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

+2-2
Original file line numberDiff line numberDiff line change
@@ -2013,7 +2013,7 @@ case "$CC_BASENAME" in
20132013
PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
20142014
PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
20152015
LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
2016-
LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
2016+
LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"\$(shell pwd)/code-%p.profclangr\""
20172017
if test $LLVM_PROF_FOUND = not-found
20182018
then
20192019
LLVM_PROF_ERR=yes
@@ -2029,7 +2029,7 @@ case "$CC_BASENAME" in
20292029
PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
20302030
PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
20312031
LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
2032-
LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
2032+
LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"\$(shell pwd)/code-%p.profclangr\""
20332033
if test "${LLVM_PROF_FOUND}" = "not-found"
20342034
then
20352035
LLVM_PROF_ERR=yes

0 commit comments

Comments
 (0)