Do not use -ffast-math by default. Too large a chance of miscompiled code.

This commit is contained in:
Axel Kohlmeyer 2020-05-14 00:43:43 -04:00
parent 87c34fb144
commit e36d2ce3e6
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 2 additions and 2 deletions

View File

@ -60,11 +60,11 @@ if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Intel")
endif() endif()
if(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU") if(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
set(CMAKE_TUNE_DEFAULT "-ffast-math -march=native") set(CMAKE_TUNE_DEFAULT "-march=native")
endif() endif()
if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang") if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
set(CMAKE_TUNE_DEFAULT "-ffast-math -march=native") set(CMAKE_TUNE_DEFAULT "-march=native")
endif() endif()
# we require C++11 without extensions # we require C++11 without extensions