Duncan pointed out that sometimes CC and CXX are used to specify the compiler. Also...
authorBill Wendling <isanbard@gmail.com>
Wed, 19 Oct 2011 09:47:00 +0000 (09:47 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 19 Oct 2011 09:47:00 +0000 (09:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142489 91177308-0d34-0410-b5e6-96231b3b80d8

utils/release/test-release.sh

index 00a1ac166fb6ec183c51661ba0e86a0e37a8b4f7..425532419457be9907a4bf9f2840146783ef580e 100755 (executable)
@@ -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() {