1 ### Build definitions for Win32 (or Win64?) MinGW native build.
2 ### Please copy this to buildvars_mingw.dat and edit.
4 #CMAKE="/c/Program Files (x86)/CMake/bin/cmake"
10 #MAKEFLAGS_BASE="-fvect-cost-model=dynamic -ftree-vectorize \
11 # -ftree-loop-distribute-patterns \
12 # -ftree-loop-optimize -ftree-loop-if-convert-stores \
13 # -fbranch-probabilities -fbranch-target-load-optimize \
14 # -fselective-scheduling -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops \
16 # -fgraphite-identity \
17 # -floop-nest-optimize \
19 MAKEFLAGS_BASE="-fvect-cost-model=dynamic -ftree-vectorize \
20 -ftree-loop-distribute-patterns \
21 -ftree-loop-optimize -ftree-loop-if-convert-stores \
22 -fbranch-probabilities -fbranch-target-load-optimize \
24 #MAKEFLAGS_BASE="-ftree-vectorize"
26 MAKEFLAGS_CXX="-O3 ${MAKEFLAGS_BASE} -DNDEBUG"
27 MAKEFLAGS_CC="-O3 ${MAKEFLAGS_BASE} -DNDEBUG"
28 #MAKEFLAGS_CXX="-O0 -flto -DNDEBUG"
29 #MAKEFLAGS_CC="-O0 -flto -DNDEBUG"
31 MAKEFLAGS_LIB_CXX="-O3 ${MAKEFLAGS_BASE} -DNDEBUG"
32 MAKEFLAGS_LIB_CC="-O3 ${MAKEFLAGS_BASE} -DNDEBUG"
33 #MAKEFLAGS_LIB_CXX="-O0 -flto -DNDEBUG"
34 #MAKEFLAGS_LIB_CC="-O0 -flto -DNDEBUG"
36 MAKEFLAGS_GENERAL="-j3"
38 #CMAKE_LINKFLAG="-DCMAKE_EXE_LINKER_FLAGS:STRING=-s -O3 -flto ${MAKEFLAGS_BASE} -fwhole-program -static-libgcc -static-libstdc++"
39 CMAKE_LINKFLAG="-DCMAKE_EXE_LINKER_FLAGS:STRING=-s -static-libgcc -static-libstdc++"
41 CMAKE_GENTYPE="MSYS Makefiles"
42 CMAKE_GENFLAGS="-DCMAKE_MAKE_PROGRAM=mingw32-make"