summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xclang/test/TestRunner.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/TestRunner.sh b/clang/test/TestRunner.sh
index 66c1e1eab52..bb20728578c 100755
--- a/clang/test/TestRunner.sh
+++ b/clang/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
OpenPOWER on IntegriCloud