Skip to content

Commit d344030

Browse files
authored
[Fuzzer] Update build.sh to fix build errors (#65496)
Switch from C++11 to C++14 as fuzzer requires std::chrono and stdlibc++ doesn't provide chrono literals when using -std=c++11. Also remove 'u' from ar command to fix this warning: ar: `u' modifier ignored since `D' is the default (see `U')
1 parent 2f62c78 commit d344030

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/lib/fuzzer/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
LIBFUZZER_SRC_DIR=$(dirname $0)
33
CXX="${CXX:-clang}"
44
for f in $LIBFUZZER_SRC_DIR/*.cpp; do
5-
$CXX -g -O2 -fno-omit-frame-pointer -std=c++11 $f -c &
5+
$CXX -g -O2 -fno-omit-frame-pointer -std=c++14 $f -c &
66
done
77
wait
88
rm -f libFuzzer.a
9-
ar ru libFuzzer.a Fuzzer*.o
9+
ar r libFuzzer.a Fuzzer*.o
1010
rm -f Fuzzer*.o
1111

0 commit comments

Comments
 (0)