summaryrefslogtreecommitdiffhomepage
path: root/cmake/mingw-w64.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-22 13:31:56 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-23 00:05:15 +0200
commita643a92efb9dacec0442152c77b9a57bb7590ece (patch)
tree9ebdda7eba91e49d2ab935bd12df467a17e73805 /cmake/mingw-w64.cmake
parent8a80cba8c336eb39a69aadde8d2c44b8f9c54026 (diff)
cmake: go back to c++11
We don't use c++14 features yet, and GNU 5.3.0 has missing make_unique anyway.
Diffstat (limited to 'cmake/mingw-w64.cmake')
-rw-r--r--cmake/mingw-w64.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmake/mingw-w64.cmake b/cmake/mingw-w64.cmake
index f951f93e..96669e2a 100644
--- a/cmake/mingw-w64.cmake
+++ b/cmake/mingw-w64.cmake
@@ -36,14 +36,14 @@ SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
# oldest CPU supported here is Northwood-based Pentium 4. -sh 20150811
-set(fpu "-ffast-math -mfpmath=both -mstackrealign -ftree-vectorize -falign-functions=16 -falign-loops=16")
-set(cpu "-O3 -pipe -march=pentium4 -mtune=corei7-avx -msse -msse2 -mno-sse3 -mno-avx -frename-registers -fno-PIC")
+set(fpu "-ffast-math -mfpmath=both -mstackrealign -falign-functions=16 -falign-loops=16")
+set(cpu "-O3 -march=pentium4 -mtune=corei7-avx -msse -msse2 -mno-sse3 -mno-avx -frename-registers")
set(lto "-flto -fuse-linker-plugin -flto-compression-level=9 -flto-partition=none -fipa-icf -fipa-pta -flto-odr-type-merging")
set(bloat "-fno-exceptions -fno-rtti")
set(sections "-ffunction-sections -fdata-sections")
-set(_CFLAGS "-fvisibility=hidden")
-set(_CXXFLAGS "${bloat} ${_CFLAGS} -std=c++14")
+set(_CFLAGS "-fvisibility=hidden -pipe")
+set(_CXXFLAGS "${bloat} ${_CFLAGS} -std=c++11")
set(_CFLAGS_RELEASE "-s ${cpu} ${fpu} ${lto} ${sections}")
set(_CFLAGS_DEBUG "-g -O0 -fstack-protector-strong")
set(_CXXFLAGS_RELEASE "${_CFLAGS_RELEASE}")