From: Daniel Dunbar Date: Sat, 2 May 2009 20:08:07 +0000 (+0000) Subject: Use clang to find clang-cc, if it isn't in path. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ddce196cb253ee12a31111a55af532d17ce0402;p=clang 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 --- 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