Force flang optimization level to -O0 to work around failures in ctest and lapack-test
This commit is contained in:
parent
f6ccca344d
commit
f132b05de1
|
@ -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 ()
|
||||
|
|
Loading…
Reference in New Issue