File tree 2 files changed +16
-8
lines changed
2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -2011,8 +2011,12 @@ case "$CC_BASENAME" in
2011
2011
*clang*)
2012
2012
# Any changes made here should be reflected in the GCC+Darwin case below
2013
2013
PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
2014
- PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
2015
- LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
2014
+ PGO_PROF_USE_FLAG="-fprofile-instr-use=\"\$(shell pwd)/code.profclangd\""
2015
+ LLVM_PROF_MERGER=m4_normalize ( "
2016
+ ${LLVM_PROFDATA} merge
2017
+ - output=\"\$ ( shell pwd ) / code.profclangd\"
2018
+ \"\$ ( shell pwd ) \"/*.profclangr
2019
+ " )
2016
2020
LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"\$(shell pwd)/code-%p.profclangr\""
2017
2021
if test $LLVM_PROF_FOUND = not-found
2018
2022
then
@@ -2027,8 +2031,12 @@ case "$CC_BASENAME" in
2027
2031
case $ac_sys_system in
2028
2032
Darwin*)
2029
2033
PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
2030
- PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
2031
- LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
2034
+ PGO_PROF_USE_FLAG="-fprofile-instr-use=\"\$(shell pwd)/code.profclangd\""
2035
+ LLVM_PROF_MERGER=m4_normalize ( "
2036
+ ${LLVM_PROFDATA} merge
2037
+ - output=\"\$ ( shell pwd ) / code.profclangd\"
2038
+ \"\$ ( shell pwd ) \"/*.profclangr
2039
+ " )
2032
2040
LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"\$(shell pwd)/code-%p.profclangr\""
2033
2041
if test "${LLVM_PROF_FOUND}" = "not-found"
2034
2042
then
You can’t perform that action at this time.
0 commit comments