Ver código fonte

ossfuzz: build with c++ compiler

Randy 5 anos atrás
pai
commit
49a0ede475
1 arquivos alterados com 1 adições e 2 exclusões
  1. 1 2
      fuzzing/ossfuzz.sh

+ 1 - 2
fuzzing/ossfuzz.sh

@@ -8,8 +8,7 @@ cd build
 cmake -DBUILD_SHARED_LIBS=OFF -DENABLE_CJSON_TEST=OFF ..
 make -j$(nproc)
 
-$CC $CFLAGS -std=c89 -I. \
-    $SRC/cjson/fuzzing/cjson_read_fuzzer.c \
+$CXX $CXXFLAGS $SRC/cjson/fuzzing/cjson_read_fuzzer.c -I. \
     -o $OUT/cjson_read_fuzzer \
     $LIB_FUZZING_ENGINE $SRC/cjson/build/libcjson.a