[llvm-commits] [llvm] r142489 - /llvm/trunk/utils/release/test-release.sh

Bill Wendling isanbard at gmail.com
Wed Oct 19 02:47:00 PDT 2011


Author: void
Date: Wed Oct 19 04:47:00 2011
New Revision: 142489

URL: http://llvm.org/viewvc/llvm-project?rev=142489&view=rev
Log:
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.

Modified:
    llvm/trunk/utils/release/test-release.sh

Modified: llvm/trunk/utils/release/test-release.sh
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/release/test-release.sh?rev=142489&r1=142488&r2=142489&view=diff
==============================================================================
--- llvm/trunk/utils/release/test-release.sh (original)
+++ llvm/trunk/utils/release/test-release.sh Wed Oct 19 04:47:00 2011
@@ -141,26 +141,8 @@
 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() {





More information about the llvm-commits mailing list