diff options
author | borenet <borenet@google.com> | 2015-07-17 07:31:07 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-17 07:31:07 -0700 |
commit | 5150a77ee70b4ea07e3c1721f74b0f3c79a4bd58 (patch) | |
tree | a24cb0c254802486bdff50f02f7ce6f33270ce20 /tools | |
parent | 992c7612394a26e36ba355f6d8d3801d8d8f1260 (diff) |
llvm_coverage_build: Use CC and CXX variables by default
NOTRY=true
BUG=skia:2430
Review URL: https://codereview.chromium.org/1242573003
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/llvm_coverage_build | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/llvm_coverage_build b/tools/llvm_coverage_build index 07b547f06b..85e9db9641 100755 --- a/tools/llvm_coverage_build +++ b/tools/llvm_coverage_build @@ -7,12 +7,13 @@ # # $ tools/llvm_coverage_build [any other flags to pass to make...] # -# This script assumes the use of Clang >=3.6. +# This script assumes the use of Clang 3.6. Earlier versions do not support +# the flags we use in the build, and 3.7+ hit asserts during compilation. # set -e -export CC="$(which clang)" -export CXX="$(which clang++)" +export CC="${CC:-$(which clang)}" +export CXX="${CXX:-$(which clang++)}" if [[ -z "${CC}" ]] || [[ -z "${CXX}" ]]; then echo "Couldn't find Clang on this machine!" |