[compiler-rt] Update libFuzzer build script to use C++17. (#89604)

libFuzzer uses std::clamp which was introduced in C++17.
This commit is contained in:
Frederic Cambus 2024-04-24 21:18:24 +02:00 committed by GitHub
parent 37e13d4924
commit 791161516f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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