mirror of https://github.com/google/oss-fuzz.git
Speculative fix for yajl migration: Reorder arguments (#2366)
Use $LIB_FUZZING_ENGINE before -x c which causes all subsequent files to be treated as C source, including libFuzzingEngine.a during AFL builds.
This commit is contained in:
parent
f6be0078df
commit
bbd509dca4
|
@ -22,7 +22,6 @@ zip -q $OUT/json_fuzzer_seed_corpus.zip $WORK/seed.json
|
|||
|
||||
mv $SRC/*.dict $OUT/
|
||||
|
||||
$CXX $CXXFLAGS -I. \
|
||||
$CXX $CXXFLAGS $LIB_FUZZING_ENGINE -I. \
|
||||
-x c yajl.c yajl_alloc.c yajl_buf.c yajl_lex.c yajl_parser.c yajl_encode.c \
|
||||
../../fuzz/json_fuzzer.c -o $OUT/json_fuzzer \
|
||||
$LIB_FUZZING_ENGINE
|
||||
../../fuzz/json_fuzzer.c -o $OUT/json_fuzzer
|
||||
|
|
Loading…
Reference in New Issue