Author: ddunbar
Date: Sat May 2 15:08:07 2009
New Revision: 70640
URL: http://llvm.org/viewvc/llvm-project?rev=70640&view=rev
Log:
Use clang to find clang-cc, if it isn't in path.
Modified:
cfe/trunk/test/TestRunner.sh
Modified: cfe/trunk/test/TestRunner.sh
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/TestRunner.sh?rev=70640&r1=70639&r2=70640&view=diff
==============================================================================
--- cfe/trunk/test/TestRunner.sh (original)
+++ cfe/trunk/test/TestRunner.sh Sat May 2 15:08:07 2009
@@ -68,6 +68,10 @@
# 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
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits