summaryrefslogtreecommitdiff
path: root/build/bmaketestsimd
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-12 21:45:35 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-12 21:45:35 +0300
commit811479d52ba27e62a07f4a0c3a3d8d7ddae38ee7 (patch)
tree71ac5a4d530602e30ea23903aa69d367702d4c4b /build/bmaketestsimd
parent7a8cd0bf0605433cd2d48370ddb8e4c9f3c1d70b (diff)
downloadManaVerse-811479d52ba27e62a07f4a0c3a3d8d7ddae38ee7.tar.gz
ManaVerse-811479d52ba27e62a07f4a0c3a3d8d7ddae38ee7.tar.bz2
ManaVerse-811479d52ba27e62a07f4a0c3a3d8d7ddae38ee7.tar.xz
ManaVerse-811479d52ba27e62a07f4a0c3a3d8d7ddae38ee7.zip
Add make script for run unit tests with maximum optimisations.
Diffstat (limited to 'build/bmaketestsimd')
-rwxr-xr-xbuild/bmaketestsimd32
1 files changed, 32 insertions, 0 deletions
diff --git a/build/bmaketestsimd b/build/bmaketestsimd
new file mode 100755
index 000000000..6f4066862
--- /dev/null
+++ b/build/bmaketestsimd
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+cd ..
+
+dir=`pwd`
+
+export CC=gcc
+export CXX=g++
+
+export LANG=C
+
+export CXXFLAGS="-pedantic -ggdb3 -O5 -pipe -Wstrict-aliasing=2 \
+-Wstrict-overflow=1 -Wformat=1 -D_FORTIFY_SOURCE=2 \
+-ffast-math -funswitch-loops -flto -fwhole-program \
+-funsafe-loop-optimizations \
+-march=native -fsched-pressure
+-std=gnu++1z -Wformat=1 \
+-fno-var-tracking -Wno-attributes"
+
+source ./build/gcc6flags.sh
+
+autoreconf -i
+./configure --prefix=$dir/run \
+--datadir=$dir/run/share/games \
+--bindir=$dir/run/bin \
+--mandir=$dir/run/share/man \
+--enable-unittests
+
+cd po
+make -j8 update-gmo 2>../build/make1.log
+cd ..
+make -j8 check 2>build/make2.log