mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-28 13:21:10 +00:00
OS X set CFLAGS+="-march=core2" for compatible binaries with old Macs
This commit is contained in:
parent
0834dbc194
commit
9ef7d2e6ba
1 changed files with 7 additions and 0 deletions
|
@ -583,6 +583,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
|
||||||
|
@ -650,6 +653,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