Unverified Commit e36d2ce3 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

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

parent 87c34fb1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -60,11 +60,11 @@ if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Intel")
endif()

if(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
  set(CMAKE_TUNE_DEFAULT "-ffast-math -march=native")
  set(CMAKE_TUNE_DEFAULT "-march=native")
endif()

if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
  set(CMAKE_TUNE_DEFAULT "-ffast-math -march=native")
  set(CMAKE_TUNE_DEFAULT "-march=native")
endif()

# we require C++11 without extensions