Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Commit

Permalink
Travis: Use LTO for X11 builds
Browse files Browse the repository at this point in the history
Add a dirty timed echo to prevent timeout during linking.
  • Loading branch information
akien-mga committed Oct 22, 2017
1 parent 0129d58 commit 23b3c55
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,10 @@ script:
$SCONS platform=$PLATFORM CXX=$CXX $OPTIONS tools=$TOOLS bits=$BITS target=$TARGET;
fi;
- if [ "$PLATFORM" = "x11" -o "$PLATFORM" = "server" ]; then
export CC=gcc-7; export CXX=g++-7;
$SCONS platform=$PLATFORM CC=$CC CXX=$CXX $OPTIONS tools=$TOOLS use_static_cpp=yes bits=$BITS target=$TARGET;
export CC="gcc-7"; export CXX="g++-7";
while true; do echo "Still building, don't timeout!"; sleep 60; done & export TIMEOUT_HACK_PID=$!;
$SCONS platform=$PLATFORM CC=$CC CXX=$CXX $OPTIONS tools=$TOOLS bits=$BITS target=$TARGET use_lto=yes use_static_cpp=yes;
kill -9 $TIMEOUT_HACK_PID;
fi;
- if [ "$PLATFORM" = "android" ]; then
$SCONS platform=$PLATFORM CXX=$CXX $OPTIONS target=$TARGET android_arch=$ANDROID_ARCH;
Expand Down

0 comments on commit 23b3c55

Please sign in to comment.