Skip to content

Commit

Permalink
[compiler-rt] Update libFuzzer build script to use C++17. (llvm#89604)
Browse files Browse the repository at this point in the history
libFuzzer uses std::clamp which was introduced in C++17.
  • Loading branch information
fcambus authored Apr 24, 2024
1 parent 37e13d4 commit 7911615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler-rt/lib/fuzzer/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7911615

Please sign in to comment.