From f132b05de167cb04ca6bfce733b6bcc66d18c706 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sat, 13 Jun 2020 19:36:01 +0200 Subject: [PATCH] Force flang optimization level to -O0 to work around failures in ctest and lapack-test --- cmake/system.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/system.cmake b/cmake/system.cmake index c2ae471d2..4eda73b23 100644 --- a/cmake/system.cmake +++ b/cmake/system.cmake @@ -421,7 +421,7 @@ if ("${CMAKE_BUILD_TYPE}" STREQUAL "Release") if ("${F_COMPILER}" STREQUAL "FLANG") set(FILTER_FLAGS "-O2;-O3") foreach (FILTER_FLAG ${FILTER_FLAGS}) - string(REPLACE ${FILTER_FLAG} "-O1" CMAKE_Fortran_FLAGS_RELEASE ${CMAKE_Fortran_FLAGS_RELEASE}) + string(REPLACE ${FILTER_FLAG} "-O0" CMAKE_Fortran_FLAGS_RELEASE ${CMAKE_Fortran_FLAGS_RELEASE}) endforeach () endif () endif ()