Build gcc if not found

if the OS is Darwin and the chosen toolchan is GCC53
This commit is contained in:
vectorsigma72 2019-09-21 18:25:26 +02:00
parent fb2819d6c5
commit 3643e4a0da

View File

@ -24,7 +24,12 @@ local GCC53_BIN="$TOOLCHAIN_DIR/cross/bin/x86_64-clover-linux-gnu-gcc"
# in Linux ebuild.sh force to use the CGG toolchain
if [[ "$(uname)" == Darwin ]]; then
if [[ $MYTOOLCHAIN == GCC* ]] && [[ ! -x "${GCC53_BIN}" ]]; then
MYTOOLCHAIN=XCODE8
if [[ $MYTOOLCHAIN == GCC53 ]]; then
cd "${CLOVERROOT}"
./build_gcc9.sh
else
MYTOOLCHAIN=XCODE8
fi
fi
fi
}