mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-10 07:12:03 +00:00
OS X set CFLAGS+="-march=core2" for compatible binaries with old Macs
This commit is contained in:
parent
b3d29fb713
commit
e7dc346a10
1 changed files with 7 additions and 0 deletions
|
@ -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}"
|
||||||
|
|
Loading…
Reference in a new issue