llvm_coverage_build: Use CC and CXX variables by default
NOTRY=true BUG=skia:2430 Review URL: https://codereview.chromium.org/1242573003
This commit is contained in:
parent
992c761239
commit
5150a77ee7
@ -7,12 +7,13 @@
|
|||||||
#
|
#
|
||||||
# $ tools/llvm_coverage_build [any other flags to pass to make...]
|
# $ 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
|
set -e
|
||||||
|
|
||||||
export CC="$(which clang)"
|
export CC="${CC:-$(which clang)}"
|
||||||
export CXX="$(which clang++)"
|
export CXX="${CXX:-$(which clang++)}"
|
||||||
|
|
||||||
if [[ -z "${CC}" ]] || [[ -z "${CXX}" ]]; then
|
if [[ -z "${CC}" ]] || [[ -z "${CXX}" ]]; then
|
||||||
echo "Couldn't find Clang on this machine!"
|
echo "Couldn't find Clang on this machine!"
|
||||||
|
Loading…
Reference in New Issue
Block a user