forked from OSchip/llvm-project
Use clang to find clang-cc, if it isn't in path.
llvm-svn: 70640
This commit is contained in:
parent
195f88386c
commit
10c6ee968f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue