Skip to content

Commit

Permalink
Improve packaged Linux binary performance
Browse files Browse the repository at this point in the history
In order to address problems on older CPUs with "illegal instruction"
errors, we set the target CPU to x86-64 for Deb and RPM release builds.
Original issue is #1682 and the PR to implement was #1686.

As part of #1682, we discussed that we should also build using
-mtune=intel to get better performance.
  • Loading branch information
SeanTAllen committed Mar 25, 2017
1 parent 077c276 commit a430bce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis_script.bash
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fi

ponyc-test(){
echo "Building and testing ponyc..."
make CC="$CC1" CXX="$CXX1" test-ci
make CC="$CC1" CXX="$CXX1" tune=intel test-ci
}

ponyc-build-packages(){
Expand All @@ -26,7 +26,7 @@ ponyc-build-packages(){
PACKAGE_ITERATION="${TRAVIS_BUILD_NUMBER}.$(git rev-parse --short --verify 'HEAD^{commit}')"

echo "Building ponyc packages for deployment..."
make verbose=1 arch=x86-64 config=release package_name="ponyc" package_base_version="$(cat VERSION)" package_iteration="${PACKAGE_ITERATION}" deploy
make CC="$CC1" CXX="$CXX1" verbose=1 arch=x86-64 tune=intel config=release package_name="ponyc" package_base_version="$(cat VERSION)" package_iteration="${PACKAGE_ITERATION}" deploy
}

ponyc-build-docs(){
Expand Down

0 comments on commit a430bce

Please sign in to comment.