From ad7f1da604d8bb0aaaa7ba9e98a266ea59cbf125 Mon Sep 17 00:00:00 2001 From: Grzegorz Kowal Date: Thu, 4 Feb 2021 17:36:37 -0300 Subject: [PATCH] CMake: -ftree-vectorize seems to be problematic in some cases. Signed-off-by: Grzegorz Kowal --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c28c75a..cf06f58 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,7 +19,7 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) endif() if(CMAKE_Fortran_COMPILER_ID MATCHES "GNU") - add_compile_options("$<$:-march=native;-pipe;-ftree-vectorize;-fno-unsafe-math-optimizations;-frounding-math;-fsignaling-nans;-finline-limit=10000;-fdiagnostics-color=always>") + add_compile_options("$<$:-march=native;-pipe;-fno-tree-vectorize;-fno-unsafe-math-optimizations;-frounding-math;-fsignaling-nans;-finline-limit=10000;-fdiagnostics-color=always>") add_compile_options("$<$:-Og;-pedantic;-W;-Wall;-Wno-unused-dummy-argument>") endif()