Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix fuzzing build, r=bustage
--HG--
extra : amend_source : dd2416676b239c3ddc8e86f667abcb5d2c4ef68a
  • Loading branch information
franziskuskiefer committed Jan 20, 2017
1 parent 993a402 commit 873e70e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions coreconf/fuzz.sh
Expand Up @@ -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)
Expand Down

0 comments on commit 873e70e

Please sign in to comment.