OS X set CFLAGS+="-march=core2" for compatible binaries with old Macs

This commit is contained in:
mazmazz 2019-01-05 19:27:34 -05:00
parent b3d29fb713
commit e7dc346a10

View file

@ -584,6 +584,9 @@ before_install:
ASSET_FILES_OPTIONAL_GET=1; ASSET_FILES_OPTIONAL_GET=1;
fi; fi;
# Print version info
- gcc --version;
install: install:
# Install OS X library dependencies via Homebrew # Install OS X library dependencies via Homebrew
@ -651,6 +654,10 @@ before_script:
- mkdir package - mkdir package
- export CFLAGS="-Wall -W -Werror $WFLAGS" - export CFLAGS="-Wall -W -Werror $WFLAGS"
- export CCACHE_COMPRESS=true - export CCACHE_COMPRESS=true
# If OS X, set -march=core2 to build compatible binaries with old Macs
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export CFLAGS="${CFLAGS} -march=core2";
fi;
- cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PWD/bin -DCPACK_PACKAGE_DIRECTORY=$PWD/package - cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PWD/bin -DCPACK_PACKAGE_DIRECTORY=$PWD/package
-DSRB2_ASSET_HASHED="${SRB2_ASSET_HASHED}" -DSRB2_ASSET_DOCS="${SRB2_ASSET_DOCS}" -DSRB2_ASSET_HASHED="${SRB2_ASSET_HASHED}" -DSRB2_ASSET_DOCS="${SRB2_ASSET_DOCS}"
-DSRB2_ASSET_DIRECTORY="${SRB2_ASSET_DIRECTORY}" -DSRB2_ASSET_DIRECTORY="${SRB2_ASSET_DIRECTORY}"