summaryrefslogtreecommitdiffhomepage
path: root/cmake/mingw-w64.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-10-17 10:49:01 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-10-17 10:49:01 +0200
commit0cff7ae12e4672f7b8272830691bfbfe92dd56c3 (patch)
treeb481e60ef8d4a2dfebf85f6b2928dfcb8c3e1950 /cmake/mingw-w64.cmake
parent86418fa6feeb199df96146ba2343f4b9fdb54c21 (diff)
cmake: drop -ffast-math, allow for NaN check
Diffstat (limited to 'cmake/mingw-w64.cmake')
-rw-r--r--cmake/mingw-w64.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/mingw-w64.cmake b/cmake/mingw-w64.cmake
index f8ee1d41..2705c068 100644
--- a/cmake/mingw-w64.cmake
+++ b/cmake/mingw-w64.cmake
@@ -26,7 +26,8 @@ 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(cpu "-O3 -march=pentium4 -mtune=corei7-avx -ffast-math -mfpmath=both -msse -msse2 -mno-sse3")
+set(fpu "-fno-math-errno -funsafe-math-optimizations -fno-signed-zeros -mfpmath=both")
+set(cpu "-O3 -march=pentium4 -mtune=corei7-avx ${fpu} -msse -msse2 -mno-sse3")
set(CFLAGS-OVERRIDE "" CACHE STRING "")