[compiler-rt] 7911615 - [compiler-rt] Update libFuzzer build script to use C++17. (#89604)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 24 12:18:27 PDT 2024
Author: Frederic Cambus
Date: 2024-04-24T21:18:24+02:00
New Revision: 791161516f48f41ae90f1231fdfc7374f43b5a9f
URL: https://github.com/llvm/llvm-project/commit/791161516f48f41ae90f1231fdfc7374f43b5a9f
DIFF: https://github.com/llvm/llvm-project/commit/791161516f48f41ae90f1231fdfc7374f43b5a9f.diff
LOG: [compiler-rt] Update libFuzzer build script to use C++17. (#89604)
libFuzzer uses std::clamp which was introduced in C++17.
Added:
Modified:
compiler-rt/lib/fuzzer/build.sh
Removed:
################################################################################
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
More information about the llvm-commits
mailing list