diff --git a/lib/Fuzzer/build.sh b/lib/Fuzzer/build.sh index 27c148ad43d..4556af5daf7 100755 --- a/lib/Fuzzer/build.sh +++ b/lib/Fuzzer/build.sh @@ -1,7 +1,8 @@ #!/bin/bash LIBFUZZER_SRC_DIR=$(dirname $0) +CXX="${CXX:-clang}" for f in $LIBFUZZER_SRC_DIR/*.cpp; do - clang -g -O2 -fno-omit-frame-pointer -std=c++11 $f -c & + $CXX -g -O2 -fno-omit-frame-pointer -std=c++11 $f -c & done wait rm -f libFuzzer.a