Fixed GCC compilation in macOS

This commit is contained in:
vectorsigma 2019-09-07 14:06:03 +02:00
parent 8ea0bc5658
commit 7e526c275b
3 changed files with 8 additions and 0 deletions

1
.gitignore vendored
View File

@ -73,3 +73,4 @@ CloverPrefpane.strings
BaseTools/Source/Python/build/BuildReport.pyc
Conf/BuildEnv.sh
BaseTools/Source/Python/build/BuildReport.pyc

View File

@ -417,6 +417,13 @@ checkToolchain() {
echo "Install on your system or define the TOOLCHAIN_DIR variable." >&2
exit 1
fi
else
export GCC53_BIN="$TOOLCHAIN_DIR/cross/bin/x86_64-clover-linux-gnu-"
if [[ $TOOLCHAIN == GCC* ]] && [[ ! -x "${GCC53_BIN}gcc" ]]; then
echo "No clover toolchain found !" >&2
echo "Build it with the build_gcc8.sh script or define the TOOLCHAIN_DIR variable." >&2
exit 1
fi
fi
if [[ -x "/opt/local/bin/nasm" ]]; then