From a07c61da300332a41034969fc6d2ca5dbdbc1448 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 2 Dec 2017 08:18:49 +0100 Subject: cmake/mingw-w64: fix failing at runtime --- cmake/mingw-w64.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmake') diff --git a/cmake/mingw-w64.cmake b/cmake/mingw-w64.cmake index 81e56850..a79a913b 100644 --- a/cmake/mingw-w64.cmake +++ b/cmake/mingw-w64.cmake @@ -37,11 +37,11 @@ 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") -set(cpu "-O3 -march=i686 -msse3") +set(fpu "-ffast-math -mfpmath=both -mstackrealign -falign-functions=16 -falign-loops=16") +set(cpu "-O3 -march=i686 -msse3 -mtune=skylake -frename-registers") #set(lto "-fno-lto -fno-use-linker-plugin -flto-compression-level=9 -flto-partition=balanced -fno-ipa-pta -fno-lto-odr-type-merging") set(lto "") -set(sections "-ffunction-sections -fdata-sections") +set(sections "-ffunction-sections -fdata-sections -s") set(cc "") #set(cc "-fdump-statistics-details -fdump-ipa-cgraph") -- cgit v1.2.3