mirror of
https://github.com/python/cpython.git
synced 2025-09-25 17:59:57 +00:00
[3.12] gh-117752: Autoconf: store all LLVM profile data in the build directory (GH-117790) (#117795)
This prevents spurious 'env changed' and llvm-profdata merge errors.
(cherry picked from commit 396b831850
)
Co-authored-by: Erlend E. Aasland <erlend@python.org>
This commit is contained in:
parent
9376a9f0d8
commit
c64b65e3aa
2 changed files with 4 additions and 4 deletions
4
configure
generated
vendored
4
configure
generated
vendored
|
@ -8786,7 +8786,7 @@ case $CC in
|
||||||
PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
|
PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
|
||||||
PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
|
PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
|
||||||
LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
|
LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
|
||||||
LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
|
LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"\$(shell pwd)/code-%p.profclangr\""
|
||||||
if test $LLVM_PROF_FOUND = not-found
|
if test $LLVM_PROF_FOUND = not-found
|
||||||
then
|
then
|
||||||
LLVM_PROF_ERR=yes
|
LLVM_PROF_ERR=yes
|
||||||
|
@ -8802,7 +8802,7 @@ case $CC in
|
||||||
PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
|
PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
|
||||||
PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
|
PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
|
||||||
LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
|
LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
|
||||||
LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
|
LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"\$(shell pwd)/code-%p.profclangr\""
|
||||||
if test "${LLVM_PROF_FOUND}" = "not-found"
|
if test "${LLVM_PROF_FOUND}" = "not-found"
|
||||||
then
|
then
|
||||||
LLVM_PROF_ERR=yes
|
LLVM_PROF_ERR=yes
|
||||||
|
|
|
@ -1989,7 +1989,7 @@ case $CC in
|
||||||
PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
|
PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
|
||||||
PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
|
PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
|
||||||
LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
|
LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
|
||||||
LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
|
LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"\$(shell pwd)/code-%p.profclangr\""
|
||||||
if test $LLVM_PROF_FOUND = not-found
|
if test $LLVM_PROF_FOUND = not-found
|
||||||
then
|
then
|
||||||
LLVM_PROF_ERR=yes
|
LLVM_PROF_ERR=yes
|
||||||
|
@ -2005,7 +2005,7 @@ case $CC in
|
||||||
PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
|
PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
|
||||||
PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
|
PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
|
||||||
LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
|
LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
|
||||||
LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
|
LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"\$(shell pwd)/code-%p.profclangr\""
|
||||||
if test "${LLVM_PROF_FOUND}" = "not-found"
|
if test "${LLVM_PROF_FOUND}" = "not-found"
|
||||||
then
|
then
|
||||||
LLVM_PROF_ERR=yes
|
LLVM_PROF_ERR=yes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue