mirror of
https://github.com/Relintai/osxcross.git
synced 2025-02-08 02:55:56 +01:00
Although it may work, GCC shouldn't be built by clang
This commit is contained in:
parent
68bdbd9452
commit
8a780ba3ae
@ -20,25 +20,6 @@ if [ $PLATFORM == CYGWIN* ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $PLATFORM == *BSD ]] || [ $PLATFORM == "DragonFly" ]; then
|
||||
MAKE=gmake
|
||||
SED=gsed
|
||||
else
|
||||
MAKE=make
|
||||
SED=sed
|
||||
fi
|
||||
|
||||
if [ -z "$CC" ]; then
|
||||
export CC="clang"
|
||||
fi
|
||||
|
||||
if [ -z "$CXX" ]; then
|
||||
export CXX="clang++"
|
||||
fi
|
||||
|
||||
if [ -z "$CMAKE" ]; then
|
||||
CMAKE="cmake"
|
||||
fi
|
||||
|
||||
function require()
|
||||
{
|
||||
@ -58,9 +39,36 @@ function require()
|
||||
set -e
|
||||
}
|
||||
|
||||
if [[ $PLATFORM == *BSD ]] || [ $PLATFORM == "DragonFly" ]; then
|
||||
MAKE=gmake
|
||||
SED=gsed
|
||||
else
|
||||
MAKE=make
|
||||
SED=sed
|
||||
fi
|
||||
|
||||
if [ -z "$USESYSTEMCOMPILER" ]; then
|
||||
if [ -z "$CC" ]; then
|
||||
export CC="clang"
|
||||
fi
|
||||
|
||||
if [ -z "$CXX" ]; then
|
||||
export CXX="clang++"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "$CMAKE" ]; then
|
||||
CMAKE="cmake"
|
||||
fi
|
||||
|
||||
if [ -n "$CC" ]; then
|
||||
require $CC
|
||||
fi
|
||||
|
||||
if [ -n "$CXX" ]; then
|
||||
require $CXX
|
||||
fi
|
||||
|
||||
require $SED
|
||||
require $MAKE
|
||||
require $CMAKE
|
||||
|
Loading…
Reference in New Issue
Block a user