diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-30 19:58:31 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-30 19:58:31 +0200 |
commit | f1123f050a8f02c9187270a50f2ac0550596e73f (patch) | |
tree | 0c841367c8863b2910956bb74810e68eeb835980 /cmake/mingw-w64.cmake | |
parent | db9671642d288fbd1955d229dac6e1ecb6ab608e (diff) |
cmake: disable lto partitions for mingw
It affects generated code.
Diffstat (limited to 'cmake/mingw-w64.cmake')
-rw-r--r-- | cmake/mingw-w64.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/mingw-w64.cmake b/cmake/mingw-w64.cmake index 0a21f1ed..98678ea0 100644 --- a/cmake/mingw-w64.cmake +++ b/cmake/mingw-w64.cmake @@ -40,7 +40,7 @@ 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 -march=pentium4 -mtune=corei7-avx -msse -msse2 -mno-sse3 -mno-avx -frename-registers -fno-PIC") -set(lto "-flto -fuse-linker-plugin -flto-compression-level=9 -flto-partition=balanced -fno-ipa-pta") +set(lto "-flto -fuse-linker-plugin -flto-compression-level=9 -flto-partition=none -fno-ipa-pta") set(_CFLAGS " -fvisibility=hidden") set(_CXXFLAGS "${_CFLAGS}") @@ -49,7 +49,7 @@ set(_CFLAGS_DEBUG "-g -ggdb") set(_CXXFLAGS_RELEASE "${_CFLAGS_RELEASE}") set(_CXXFLAGS_DEBUG "${_CFLAGS_DEBUG}") -set(_LDFLAGS "-Wl,--as-needed -Wl,--nxcompat,--no-seh") +set(_LDFLAGS "-Wl,--as-needed,--nxcompat,--no-seh") set(_LDFLAGS_RELEASE "") set(_LDFLAGS_DEBUG "") |