mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-26 13:10:42 +00:00
Duncan pointed out that sometimes CC and CXX are used to specify the compiler. Also that the configure script takes care of finding an appropriate compiler if one's not specified.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142489 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ca58c72267
commit
250c6801e4
@ -141,26 +141,8 @@ LogDir=$BuildDir/logs
|
||||
mkdir -p $LogDir
|
||||
|
||||
# Find a compilers.
|
||||
c_compiler="`which clang`"
|
||||
if [ -z "$c_compiler" ]; then
|
||||
c_compiler="`which gcc`"
|
||||
if [ -z "$c_compiler" ]; then
|
||||
c_compiler="`which cc`"
|
||||
if [ -z "$c_compiler" ]; then
|
||||
echo "error: cannot find a working C compiler"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
cxx_compiler="`which clang++`"
|
||||
if [ -z "$cxx_compiler" ]; then
|
||||
cxx_compiler="`which g++`"
|
||||
if [ -z "$cxx_compiler" ]; then
|
||||
cxx_compiler="`which c++`"
|
||||
if [ -z "$cxx_compiler" ]; then
|
||||
echo "error: cannot find a working C++ compiler"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
c_compiler="$CC"
|
||||
cxx_compiler="$CXX"
|
||||
|
||||
# Make sure that the URLs are valid.
|
||||
function check_valid_urls() {
|
||||
|
Loading…
Reference in New Issue
Block a user