diff options
author | Martin Thomson <martin.thomson@gmail.com> | 2017-01-10 14:15:43 +1300 |
---|---|---|
committer | Martin Thomson <martin.thomson@gmail.com> | 2017-01-10 14:15:43 +1300 |
commit | a962154b9cb639003be2bf17abc89457d20f9b0e (patch) | |
tree | fc019f771971742af511e69e41102a0a3ce77373 /coreconf/fuzz.sh | |
parent | 0109d22161c0a4199255324523c624d21818d3a1 (diff) | |
download | nss-hg-a962154b9cb639003be2bf17abc89457d20f9b0e.tar.gz |
Bug 1329837 - Refactor build.sh further, r=ttaubert
Diffstat (limited to 'coreconf/fuzz.sh')
-rw-r--r-- | coreconf/fuzz.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/coreconf/fuzz.sh b/coreconf/fuzz.sh new file mode 100644 index 000000000..07a2c5648 --- /dev/null +++ b/coreconf/fuzz.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +# 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 + +echo "fuzz [2/2] Cloning fuzzing corpus ..." +run_verbose "$cwd"/fuzz/clone_corpus.sh |