diff --git a/configure b/configure index f2e628cee6b2d9..130020c43e474e 100755 --- a/configure +++ b/configure @@ -8826,7 +8826,7 @@ case "$CC_BASENAME" in *clang*) # Any changes made here should be reflected in the GCC+Darwin case below 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 -Wno-profile-instr-unprofiled " LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"\$(shell pwd)/code-%p.profclangr\"" if test $LLVM_PROF_FOUND = not-found @@ -8842,7 +8842,7 @@ case "$CC_BASENAME" in case $ac_sys_system in Darwin*) 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 -Wno-profile-instr-unprofiled " LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"\$(shell pwd)/code-%p.profclangr\"" if test "${LLVM_PROF_FOUND}" = "not-found" diff --git a/configure.ac b/configure.ac index bcb1169393644b..7b1a132860f476 100644 --- a/configure.ac +++ b/configure.ac @@ -2011,7 +2011,10 @@ case "$CC_BASENAME" in *clang*) # Any changes made here should be reflected in the GCC+Darwin case below PGO_PROF_GEN_FLAG="-fprofile-instr-generate" - PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" + PGO_PROF_USE_FLAG=m4_normalize(" + -fprofile-instr-use=code.profclangd + -Wno-profile-instr-unprofiled + ") LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"\$(shell pwd)/code-%p.profclangr\"" if test $LLVM_PROF_FOUND = not-found @@ -2027,7 +2030,10 @@ case "$CC_BASENAME" in case $ac_sys_system in Darwin*) PGO_PROF_GEN_FLAG="-fprofile-instr-generate" - PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" + PGO_PROF_USE_FLAG=m4_normalize(" + -fprofile-instr-use=code.profclangd + -Wno-profile-instr-unprofiled + ") LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"\$(shell pwd)/code-%p.profclangr\"" if test "${LLVM_PROF_FOUND}" = "not-found"