diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-12-02 08:18:49 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-12-02 08:22:08 +0100 |
commit | a07c61da300332a41034969fc6d2ca5dbdbc1448 (patch) | |
tree | 2701da6d869da8692d976195859f8e421400c4a2 | |
parent | fb4542829c3dca33582551e0ca770a142189ad40 (diff) |
cmake/mingw-w64: fix failing at runtime
-rw-r--r-- | cmake/mingw-w64.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
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") |