[compiler-rt] [compiler-rt] Update libFuzzer build script to use C++17. (PR #89604)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 22 06:22:33 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: Frederic Cambus (fcambus)
<details>
<summary>Changes</summary>
libFuzzer uses std::clamp which was introduced in C++17.
---
Full diff: https://github.com/llvm/llvm-project/pull/89604.diff
1 Files Affected:
- (modified) compiler-rt/lib/fuzzer/build.sh (+1-1)
``````````diff
diff --git a/compiler-rt/lib/fuzzer/build.sh b/compiler-rt/lib/fuzzer/build.sh
index f7f329c0d19c76..f58fd9557ce3d5 100755
--- a/compiler-rt/lib/fuzzer/build.sh
+++ b/compiler-rt/lib/fuzzer/build.sh
@@ -2,7 +2,7 @@
LIBFUZZER_SRC_DIR=$(dirname $0)
CXX="${CXX:-clang}"
for f in $LIBFUZZER_SRC_DIR/*.cpp; do
- $CXX -g -O2 -fno-omit-frame-pointer -std=c++14 $f -c &
+ $CXX -g -O2 -fno-omit-frame-pointer -std=c++17 $f -c &
done
wait
rm -f libFuzzer.a
``````````
</details>
https://github.com/llvm/llvm-project/pull/89604
More information about the llvm-commits
mailing list