diff options
author | jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> | 2019-05-01 16:58:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-01 16:58:41 -0400 |
commit | bbd509dca488b139a3004e81aaebfb02d551dacf (patch) | |
tree | f47a3eba23924acef12ef7ea54b28201e26a495b /projects | |
parent | f6be0078df88440221becb42842bef59e0c039b6 (diff) |
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.
Diffstat (limited to 'projects')
-rwxr-xr-x | projects/yajl-ruby/build.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/projects/yajl-ruby/build.sh b/projects/yajl-ruby/build.sh index c0f6aaee..03cecc39 100755 --- a/projects/yajl-ruby/build.sh +++ b/projects/yajl-ruby/build.sh @@ -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 |