aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-05-02 20:08:07 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-05-02 20:08:07 +0000
commit5ddce196cb253ee12a31111a55af532d17ce0402 (patch)
tree352686a30a9f5d903b621fa411419fe7cb8731b6
parenta7e1898e6b84ed7911d1f25c975b27b78a4950cb (diff)
Use clang to find clang-cc, if it isn't in path.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70640 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xtest/TestRunner.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/TestRunner.sh b/test/TestRunner.sh
index 66c1e1eab5..bb20728578 100755
--- a/test/TestRunner.sh
+++ b/test/TestRunner.sh
@@ -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