]> granicus.if.org Git - clang/commitdiff
Use clang to find clang-cc, if it isn't in path.
authorDaniel Dunbar <daniel@zuster.org>
Sat, 2 May 2009 20:08:07 +0000 (20:08 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 2 May 2009 20:08:07 +0000 (20:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70640 91177308-0d34-0410-b5e6-96231b3b80d8

test/TestRunner.sh

index 66c1e1eab5200ebebc9a4ba3fc7077d964f09205..bb20728578c1caca44d2ad1db4afd69ff92f8c2f 100755 (executable)
@@ -68,6 +68,10 @@ fi
 
 # Try to sanity check $CLANGCC too
 CLANGCC=$(which "$CLANGCC")
+# If that failed, ask clang.
+if [ -z "$CLANGCC" ]; then
+    CLANGCC=$($CLANG -print-prog-name=clang-cc)
+fi
 if [ -z "$CLANGCC" ]; then
   echo "Couldn't find 'clang-cc' program, make sure clang is found in your build directory"
   exit 1