Tweaks for a proper macOS 10.12 build

This commit is contained in:
falkTX 2020-09-21 05:17:19 +01:00
parent 1e66d1cb85
commit 6dacdef9fb
No known key found for this signature in database
GPG Key ID: CDBAA37ABC74FBA0
3 changed files with 7 additions and 2 deletions

View File

@ -337,6 +337,11 @@ fi
# cleanup
if [ $(clang -v 2>&1 | grep version | cut -d' ' -f4 | cut -d'.' -f1) -lt 11 ]; then
export ARCH=32
build_base
fi
export ARCH=64
build_base

View File

@ -20,7 +20,7 @@ fi
source data/macos/common.env
if [ $(clang -v 2>&1 | grep version | cut -d' ' -f4 | cut -d'.' -f1) -lt 11 ]; then
if [ $(uname -r | cut -d '.' -f 1) -lt 16 ]; then
export MACOS_VERSION_MIN="10.8"
else
export MACOS_VERSION_MIN="10.12"
@ -54,7 +54,7 @@ make USING_JUCE=${USING_JUCE} USING_JUCE_AUDIO_DEVICES=${USING_JUCE} ${MAKE_ARGS
##############################################################################################
# Build 32bit bridges
if [ "${MACOS_VERSION_MIN}" != "10.12" ]; then
if [ $(clang -v 2>&1 | grep version | cut -d' ' -f4 | cut -d'.' -f1) -lt 11 ]; then
export CFLAGS="-I${TARGETDIR}/carla32/include -m32 -mmacosx-version-min=${MACOS_VERSION_MIN}"
export CXXFLAGS="${CFLAGS} -stdlib=libc++ -Wno-unknown-pragmas -Wno-unused-private-field -Werror=auto-var-id"

View File