diff options
author | Franziskus Kiefer <franziskuskiefer@gmail.com> | 2017-01-20 16:53:55 +0100 |
---|---|---|
committer | Franziskus Kiefer <franziskuskiefer@gmail.com> | 2017-01-20 16:53:55 +0100 |
commit | b6fc9de8bb595ffbbca32433f524d507322d31df (patch) | |
tree | aa2480f903e1c3ff5d2799b57b516f53c41ed140 /coreconf/fuzz.sh | |
parent | 1094c84f2967a6dd16debdaca90c33782c291596 (diff) | |
download | nss-hg-b6fc9de8bb595ffbbca32433f524d507322d31df.tar.gz |
fix fuzzing build, r=bustage
Diffstat (limited to 'coreconf/fuzz.sh')
-rw-r--r-- | coreconf/fuzz.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/coreconf/fuzz.sh b/coreconf/fuzz.sh index df51617d8..73b0d9f46 100644 --- a/coreconf/fuzz.sh +++ b/coreconf/fuzz.sh @@ -4,14 +4,15 @@ set +e # Default to clang if CC is not set. -command -v clang &> /dev/null 2>&1 -if [[ $? = 0 && -z "$CC" ]]; then +if [ -z "$CC" ]; then + command -v clang &> /dev/null 2>&1 + if [ $? != 0 ]; then + echo "Fuzzing requires clang!" + exit 1 + fi export CC=clang export CCC=clang++ export CXX=clang++ -else - echo "Fuzzing requires clang!" - exit 1 fi gyp_params+=(-Dtest_build=1 -Dfuzz=1) |