From 5ddce196cb253ee12a31111a55af532d17ce0402 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sat, 2 May 2009 20:08:07 +0000 Subject: [PATCH] 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 --- test/TestRunner.sh | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.40.0