From 791161516f48f41ae90f1231fdfc7374f43b5a9f Mon Sep 17 00:00:00 2001 From: Frederic Cambus Date: Wed, 24 Apr 2024 21:18:24 +0200 Subject: [PATCH] [compiler-rt] Update libFuzzer build script to use C++17. (#89604) libFuzzer uses std::clamp which was introduced in C++17. --- compiler-rt/lib/fuzzer/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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