From fcd9eea31b8d3389d51689f6dbc4e6cf0346f86e Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Sat, 21 Jan 2017 01:21:56 +0000 Subject: [PATCH] [libFuzzer] Use CXX to set compiler to use Reviewers: kcc Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D28976 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292697 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Fuzzer/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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