summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-10-19 09:47:00 +0000
committerBill Wendling <isanbard@gmail.com>2011-10-19 09:47:00 +0000
commita96c00bf4736add36d9cc8acd127b258c65e3c40 (patch)
tree96e10cb00db76689efe2bbb7721947322d1b731d /llvm
parent6652e22bad8962b79430108a7fed10f83a59b3a3 (diff)
downloadbcm5719-llvm-a96c00bf4736add36d9cc8acd127b258c65e3c40.tar.gz
bcm5719-llvm-a96c00bf4736add36d9cc8acd127b258c65e3c40.zip
Duncan pointed out that sometimes CC and CXX are used to specify the compiler. Also that the configure script takes care of finding an appropriate compiler if one's not specified.
llvm-svn: 142489
Diffstat (limited to 'llvm')
-rwxr-xr-xllvm/utils/release/test-release.sh22
1 files changed, 2 insertions, 20 deletions
diff --git a/llvm/utils/release/test-release.sh b/llvm/utils/release/test-release.sh
index 00a1ac166fb..42553241945 100755
--- a/llvm/utils/release/test-release.sh
+++ b/llvm/utils/release/test-release.sh
@@ -141,26 +141,8 @@ LogDir=$BuildDir/logs
mkdir -p $LogDir
# Find a compilers.
-c_compiler="`which clang`"
-if [ -z "$c_compiler" ]; then
- c_compiler="`which gcc`"
- if [ -z "$c_compiler" ]; then
- c_compiler="`which cc`"
- if [ -z "$c_compiler" ]; then
- echo "error: cannot find a working C compiler"
- fi
- fi
-fi
-cxx_compiler="`which clang++`"
-if [ -z "$cxx_compiler" ]; then
- cxx_compiler="`which g++`"
- if [ -z "$cxx_compiler" ]; then
- cxx_compiler="`which c++`"
- if [ -z "$cxx_compiler" ]; then
- echo "error: cannot find a working C++ compiler"
- fi
- fi
-fi
+c_compiler="$CC"
+cxx_compiler="$CXX"
# Make sure that the URLs are valid.
function check_valid_urls() {
OpenPOWER on IntegriCloud