wabt: fix build of external fuzzers with `-std=c++17` (#9831)

wabt moved from C++11 to C++17 about a year ago
(https://github.com/WebAssembly/wabt/pull/1825), but the oss-fuzz repo
includes external fuzzers that were built with C++11. A recent commit
(https://github.com/WebAssembly/wabt/pull/2152) broke the build.
This commit is contained in:
Keith Winstein 2023-03-01 06:24:36 -08:00 committed by GitHub
parent 19ae1cbeac
commit 95d53d8750
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -24,13 +24,13 @@ cd ..
for fuzzers in $(find $SRC -name '*_fuzzer.cc' | grep -v wasm_objdump_fuzzer); do
fuzz_basename=$(basename -s .cc $fuzzers)
$CXX $CXXFLAGS -std=c++11 -I. -Ibuild -Iinclude -Ibuild/include \
$CXX $CXXFLAGS -std=c++17 -I. -Ibuild -Iinclude -Ibuild/include \
$fuzzers $LIB_FUZZING_ENGINE ./build/libwabt.a \
-o $OUT/$fuzz_basename
done
# wasm_objdump_fuzzer needs to be linked together with binary-reader-objdump.cc
$CXX $CXXFLAGS -std=c++11 -I. -Ibuild -Ibuild/include -Iinclude /src/wasm_objdump_fuzzer.cc \
$CXX $CXXFLAGS -std=c++17 -I. -Ibuild -Ibuild/include -Iinclude /src/wasm_objdump_fuzzer.cc \
./src/binary-reader-objdump.cc $LIB_FUZZING_ENGINE ./build/libwabt.a \
-o $OUT/wasm_objdump_fuzzer