From e36d2ce3e62414307b91665b2664259d552af012 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 14 May 2020 00:43:43 -0400 Subject: [PATCH] Do not use -ffast-math by default. Too large a chance of miscompiled code. --- cmake/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 557b1ea06b..a7f92c0672 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -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