Browse Source

Force flang optimization level to -O0 to work around failures in ctest and lapack-test

pull/2662/head
Martin Kroeker GitHub 6 years ago
parent
commit
f132b05de1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      cmake/system.cmake

+ 1
- 1
cmake/system.cmake View File

@@ -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…
Cancel
Save