Skip to content

Commit 0f0da85

Browse files
committed
Add AX_CHECK_COMPILE_FLAG() test in configure
1 parent dfb0a1a commit 0f0da85

2 files changed

Lines changed: 45 additions & 2 deletions

File tree

configure

Lines changed: 41 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2084,7 +2084,10 @@ case "$ac_cv_cc_name" in
20842084
fi
20852085
;;
20862086
gcc)
2087-
PGO_PROF_GEN_FLAG="-fprofile-generate -fprofile-update=atomic"
2087+
AX_CHECK_COMPILE_FLAG(
2088+
[-fprofile-update=atomic],
2089+
[PGO_PROF_GEN_FLAG="-fprofile-generate -fprofile-update=atomic"],
2090+
[PGO_PROF_GEN_FLAG="-fprofile-generate"])
20882091
PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction"
20892092
LLVM_PROF_MERGER="true"
20902093
LLVM_PROF_FILE=""

0 commit comments

Comments
 (0)