diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-06-09 04:30:38 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-06-09 04:30:38 +0200 |
commit | 10b11765244935fe6a2290b47817adaedffc9ad4 (patch) | |
tree | c112eb9fc91bc67b3aca1ab04ae0445665aba689 /cmake/mingw-w64.cmake | |
parent | 4aa978a48d7d669bb23c039bcdfaac70b22313e9 (diff) |
cmake: remove too many flags, lto linker plugin doesn't work
Diffstat (limited to 'cmake/mingw-w64.cmake')
-rw-r--r-- | cmake/mingw-w64.cmake | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/cmake/mingw-w64.cmake b/cmake/mingw-w64.cmake index 7be20cff..7fb3657a 100644 --- a/cmake/mingw-w64.cmake +++ b/cmake/mingw-w64.cmake @@ -20,13 +20,7 @@ SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) -set(lto "-flto -flto-partition=none -fno-use-linker-plugin") -set(rice2 "-ftree-vectorize -fivopts -fweb") -set(rice3 "-ffast-math -mfpmath=both -frename-registers -funsafe-loop-optimizations") -set(rice4 "-fgcse-sm -fgcse-las -fgcse-after-reload") -set(rice5 "-fmodulo-sched -fmodulo-sched-allow-regmoves") -set(rice "${rice2} ${rice3} ${rice4} ${rice5}") -set(CMAKE_C_FLAGS_RELEASE "-O3 ${lto} ${rice} -march=i686 -mtune=corei7-avx -msse -msse2 -mno-sse3 -mno-avx" CACHE STRING "" FORCE) +set(CMAKE_C_FLAGS_RELEASE "-O3 -frename-registers -ffast-math -mfpmath=both -march=i686 -mtune=corei7-avx -msse -msse2 -mno-sse3 -mno-avx" CACHE STRING "" FORCE) set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "-msse -msse2 -mno-sse3 -mno-avx ${lto}" CACHE STRING "" FORCE) set(CMAKE_EXE_LINKER_FLAGS_RELEASE ${CMAKE_SHARED_LINKER_FLAGS_RELEASE}) set(CMAKE_CXX_FLAGS_RELEASE ${CMAKE_C_FLAGS_RELEASE} CACHE STRING "" FORCE) |