diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-06-03 12:11:04 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-06-03 12:11:04 +0200 |
commit | 1084fd8cedd99a0c297b3e0391609684ee4c1d13 (patch) | |
tree | 35a12be41cef761fd3efc6ed4487f432cba8832d /cmake | |
parent | 69e729e4515a085ea4f0cc6943917897ffe61daf (diff) |
cmake toolchain file: slight tweaks
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/mingw-w64.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/mingw-w64.cmake b/cmake/mingw-w64.cmake index 07268212..b2999520 100644 --- a/cmake/mingw-w64.cmake +++ b/cmake/mingw-w64.cmake @@ -10,6 +10,7 @@ SET(CMAKE_SYSTEM_VERSION 1) SET(CMAKE_C_COMPILER i686-w64-mingw32-gcc) SET(CMAKE_CXX_COMPILER i686-w64-mingw32-g++) set(CMAKE_RC_COMPILER i686-w64-mingw32-windres) +set(CMAKE_LINKER i686-w64-mingw32-ld) SET(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32) @@ -19,7 +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(CMAKE_C_FLAGS_RELEASE "-O3 -ffast-math -flto -fno-use-linker-plugin -march=i686 -mtune=prescott -msse -msse2 -mno-sse3 -mno-avx -frename-registers" CACHE STRING "" FORCE) +set(CMAKE_C_FLAGS_RELEASE "-O3 -ffast-math -flto -fno-use-linker-plugin -march=i686 -mtune=corei7-avx -mfpmath=both -msse -msse2 -mno-sse3 -mno-avx -frename-registers" CACHE STRING "" FORCE) set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "-msse -msse2 -mno-sse3 -mno-avx -fno-use-linker-plugin -flto" 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) |