summaryrefslogtreecommitdiffstats
path: root/clang/test/TestRunner.sh
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
commit10c6ee968f51612b20117389804e6170e7feb507 (patch)
tree94198496fccef160222e9275cdfa0fd9dc965f6b /clang/test/TestRunner.sh
parent195f88386c8aa7afe670c4d3506f045cd8600bfb (diff)
downloadbcm5719-llvm-10c6ee968f51612b20117389804e6170e7feb507.tar.gz
bcm5719-llvm-10c6ee968f51612b20117389804e6170e7feb507.zip
Use clang to find clang-cc, if it isn't in path.
llvm-svn: 70640
Diffstat (limited to 'clang/test/TestRunner.sh')
-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