diff options
author | Tim Taubert <ttaubert@mozilla.com> | 2017-01-20 14:45:55 +0100 |
---|---|---|
committer | Tim Taubert <ttaubert@mozilla.com> | 2017-01-20 14:45:55 +0100 |
commit | 96c42a0951b7aa380168ee2b109fb3e027fdf11b (patch) | |
tree | d833c46ae50a8b5491a461d02cdbff49bac9e44c /coreconf/fuzz.sh | |
parent | a32a6fb2756f0dfded13e60db61087d97631572a (diff) | |
download | nss-hg-96c42a0951b7aa380168ee2b109fb3e027fdf11b.tar.gz |
Bug 1330655 - Make NSS build within OSS-Fuzz r=franziskus
Differential Revision: https://nss-review.dev.mozaws.net/D161
Diffstat (limited to 'coreconf/fuzz.sh')
-rw-r--r-- | coreconf/fuzz.sh | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/coreconf/fuzz.sh b/coreconf/fuzz.sh index 07a2c5648..bc8a5a0d1 100644 --- a/coreconf/fuzz.sh +++ b/coreconf/fuzz.sh @@ -2,15 +2,23 @@ # This file is used by build.sh to setup fuzzing. gyp_params+=(-Dtest_build=1 -Dfuzz=1) -enable_sanitizer asan -enable_ubsan -enable_sancov # Add debug symbols even for opt builds. nspr_params+=(--enable-debug-symbols) -echo "fuzz [1/2] Cloning libFuzzer files ..." -run_verbose "$cwd"/fuzz/clone_libfuzzer.sh +if [ "$fuzz_oss" = 1 ]; then + gyp_params+=(-Dno_zdefs=1) +else + enable_sanitizer asan + enable_ubsan + enable_sancov +fi -echo "fuzz [2/2] Cloning fuzzing corpus ..." -run_verbose "$cwd"/fuzz/clone_corpus.sh +if [ "$fuzz_tls" = 1 ]; then + gyp_params+=(-Dfuzz_tls=1) +fi + +if [ ! -f "/usr/lib/libFuzzingEngine.a" ]; then + echo "Cloning libFuzzer files ..." + run_verbose "$cwd"/fuzz/clone_libfuzzer.sh +fi |