mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-23 18:09:48 +00:00
Update setenv-macos.sh for M1 Command Line Tools
This commit is contained in:
parent
d890c0201b
commit
a7d47ed282
@ -174,6 +174,11 @@ if [[ "${XCODE_DEVELOPER}" == "/Developer"* ]]; then
|
||||
DEF_CXXFLAGS=$(echo "$DEF_CXXFLAGS" | sed 's/-Wall //g')
|
||||
fi
|
||||
|
||||
# Command Line Tools show up here on a Mac-mini M1
|
||||
if [[ "${XCODE_DEVELOPER}" == "/Library"* ]]; then
|
||||
LIBRARY_XCODE=1
|
||||
fi
|
||||
|
||||
# XCODE_DEVELOPER_SDK is the SDK location.
|
||||
if [[ "${ANTIQUE_XCODE}" == "1" ]]
|
||||
then
|
||||
@ -187,6 +192,18 @@ then
|
||||
[ "$0" = "${BASH_SOURCE[0]}" ] && exit 1 || return 1
|
||||
fi
|
||||
|
||||
elif [[ "${LIBRARY_XCODE}" == "1" ]]
|
||||
then
|
||||
if [[ -d "${XCODE_DEVELOPER}/SDKs" ]]; then
|
||||
XCODE_DEVELOPER_SDK="${XCODE_DEVELOPER}/SDKs"
|
||||
fi
|
||||
|
||||
if [ ! -d "${XCODE_DEVELOPER_SDK}" ]; then
|
||||
echo "ERROR: unable to find XCODE_DEVELOPER_SDK directory."
|
||||
echo " Is the SDK supported by Xcode and installed?"
|
||||
[ "$0" = "${BASH_SOURCE[0]}" ] && exit 1 || return 1
|
||||
fi
|
||||
|
||||
else
|
||||
if [[ -d "${XCODE_DEVELOPER}/Platforms/${MACOS_SDK}.platform" ]]; then
|
||||
XCODE_DEVELOPER_SDK="${XCODE_DEVELOPER}/Platforms/${MACOS_SDK}.platform/Developer/SDKs"
|
||||
@ -238,9 +255,16 @@ fi
|
||||
# XCODE_TOOLCHAIN is the location of the actual compiler tools.
|
||||
if [[ "${ANTIQUE_XCODE}" == "1" ]]
|
||||
then
|
||||
if [ -d "${XCODE_DEVELOPER}/usr/bin" ]; then
|
||||
if [ -d "${XCODE_DEVELOPER}/usr/bin" ]; then
|
||||
XCODE_TOOLCHAIN="${XCODE_DEVELOPER}/usr/bin"
|
||||
fi
|
||||
|
||||
elif [[ "${LIBRARY_XCODE}" == "1" ]]
|
||||
then
|
||||
if [ -d "${XCODE_DEVELOPER}/usr/bin" ]; then
|
||||
XCODE_TOOLCHAIN="${XCODE_DEVELOPER}/usr/bin"
|
||||
fi
|
||||
|
||||
else
|
||||
if [ -d "${XCODE_DEVELOPER}/Toolchains/XcodeDefault.xctoolchain/usr/bin/" ]; then
|
||||
XCODE_TOOLCHAIN="${XCODE_DEVELOPER}/Toolchains/XcodeDefault.xctoolchain/usr/bin/"
|
||||
|
Loading…
Reference in New Issue
Block a user