From 811479d52ba27e62a07f4a0c3a3d8d7ddae38ee7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 12 Jan 2017 21:45:35 +0300 Subject: Add make script for run unit tests with maximum optimisations. --- build/bmaketestsimd | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 build/bmaketestsimd 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 -- cgit v1.2.3-60-g2f50