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 @@ -1987,8 +1987,12 @@ case $CC in
1987
1987
*clang*)
1988
1988
# Any changes made here should be reflected in the GCC+Darwin case below
1989
1989
PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
1990
- PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
1991
- LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
1990
+ PGO_PROF_USE_FLAG="-fprofile-instr-use=\"\$(shell pwd)/code.profclangd\""
1991
+ LLVM_PROF_MERGER=m4_normalize ( "
1992
+ ${LLVM_PROFDATA} merge
1993
+ - output=\"\$ ( shell pwd ) / code.profclangd\"
1994
+ \"\$ ( shell pwd ) \"/*.profclangr
1995
+ " )
1992
1996
LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"\$(shell pwd)/code-%p.profclangr\""
1993
1997
if test $LLVM_PROF_FOUND = not-found
1994
1998
then
@@ -2003,8 +2007,12 @@ case $CC in
2003
2007
case $ac_sys_system in
2004
2008
Darwin*)
2005
2009
PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
2006
- PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
2007
- LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
2010
+ PGO_PROF_USE_FLAG="-fprofile-instr-use=\"\$(shell pwd)/code.profclangd\""
2011
+ LLVM_PROF_MERGER=m4_normalize ( "
2012
+ ${LLVM_PROFDATA} merge
2013
+ - output=\"\$ ( shell pwd ) / code.profclangd\"
2014
+ \"\$ ( shell pwd ) \"/*.profclangr
2015
+ " )
2008
2016
LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"\$(shell pwd)/code-%p.profclangr\""
2009
2017
if test "${LLVM_PROF_FOUND}" = "not-found"
2010
2018
then
You can’t perform that action at this time.
0 commit comments