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:
jonathanmetzman 2019-05-01 16:58:41 -04:00 committed by GitHub
parent f6be0078df
commit bbd509dca4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -22,7 +22,6 @@ zip -q $OUT/json_fuzzer_seed_corpus.zip $WORK/seed.json
mv $SRC/*.dict $OUT/ 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 \ -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 \ ../../fuzz/json_fuzzer.c -o $OUT/json_fuzzer
$LIB_FUZZING_ENGINE