]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - .travis-script-xonotic.sh
Turn off SSE in the win32 binaries. Damn travis.
[xonotic/darkplaces.git] / .travis-script-xonotic.sh
index 8b8f5c900adde28903ed122f3dbfc4b69c0d0fd6..9f0e9e49625b3d95975befb823617cfa7ac9f1a6 100755 (executable)
@@ -31,7 +31,7 @@ for os in "$@"; do
           LIB_JPEG=../../../${deps}/lib/libjpeg.a
         DP_LINK_ODE=shared
           CFLAGS_ODE="-DUSEODE -DLINK_TO_LIBODE -DdDOUBLE"
-          LIB_ODE="../../../${deps}/lib/libode.a"
+          LIB_ODE="../../../${deps}/lib/libode.a -lstdc++"
         DP_LINK_ZLIB=shared'
       maketargets='release'
       outputs='darkplaces-glx:darkplaces-linux32-glx darkplaces-sdl:darkplaces-linux32-sdl darkplaces-dedicated:darkplaces-linux32-dedicated'
@@ -48,7 +48,7 @@ for os in "$@"; do
           LIB_JPEG="../../../${deps}/lib/libjpeg.a"
         DP_LINK_ODE=shared
           CFLAGS_ODE="-DUSEODE -DLINK_TO_LIBODE -DdDOUBLE"
-          LIB_ODE="../../../${deps}/lib/libode.a"
+          LIB_ODE="../../../${deps}/lib/libode.a -lstdc++"
         DP_LINK_ZLIB=shared'
       maketargets='release'
       outputs='darkplaces-glx:darkplaces-linux64-glx darkplaces-sdl:darkplaces-linux64-sdl darkplaces-dedicated:darkplaces-linux64-dedicated'
@@ -63,6 +63,7 @@ for os in "$@"; do
         UNAME=MINGW32
         WIN32RELEASE=1
         CC="i686-w64-mingw32-gcc -g1 -Wl,--dynamicbase -Wl,--nxcompat -mstackrealign -I../../../${deps}/include -L../../../${deps}/lib -DUSE_WSPIAPI_H -DSUPPORTIPV6"
+       CPUOPTIMIZATIONS="-march=pentium2 -fno-math-errno -ffinite-math-only -fno-rounding-math -fno-signaling-nans -fno-trapping-math"
         WINDRES="i686-w64-mingw32-windres"
         SDL_CONFIG="../../../${deps}/bin/sdl2-config"
         DP_LINK_CRYPTO=dlopen
@@ -71,7 +72,7 @@ for os in "$@"; do
         DP_LINK_ODE=dlopen
         DP_LINK_ZLIB=dlopen'
       maketargets='release'
-      outputs='darkplaces.exe:darkplaces-wgl.exe darkplaces-sdl.exe:darkplaces.exe darkplaces-dedicated.exe:darkplaces-dedicated.exe'
+      outputs='darkplaces.exe:darkplaces-x86-wgl.exe darkplaces-sdl.exe:darkplaces-x86.exe darkplaces-dedicated.exe:darkplaces-x86-dedicated.exe'
       ;;
     win64)
       chroot=
@@ -89,7 +90,7 @@ for os in "$@"; do
         DP_LINK_ODE=dlopen
         DP_LINK_ZLIB=dlopen'
       maketargets='release'
-      outputs='darkplaces.exe:darkplaces-x64-wgl.exe darkplaces-sdl.exe:darkplaces-x64.exe darkplaces-dedicated.exe:darkplaces-x64-dedicated.exe'
+      outputs='darkplaces.exe:darkplaces-wgl.exe darkplaces-sdl.exe:darkplaces.exe darkplaces-dedicated.exe:darkplaces-dedicated.exe'
       ;;
     osx)
       chroot=
@@ -108,6 +109,11 @@ for os in "$@"; do
       ;;
   esac
 
+  # Condense whitespace in makeflags.
+  makeflags=$(
+    printf "%s\n" "$makeflags" | tr '\n' ' '
+  )
+
   (
   trap "${chroot} make -C ${PWD} ${makeflags} clean" EXIT
   eval "${chroot} make -C ${PWD} ${makeflags} ${maketargets}"