Use clang to find clang-cc, if it isn't in path.

llvm-svn: 70640
This commit is contained in:
Daniel Dunbar 2009-05-02 20:08:07 +00:00
parent 195f88386c
commit 10c6ee968f
1 changed files with 4 additions and 0 deletions

View File

@ -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