We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79cdcde commit 6876221Copy full SHA for 6876221
cmake/system.cmake
@@ -419,10 +419,9 @@ endif ()
419
420
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
421
if ("${F_COMPILER}" STREQUAL "FLANG")
422
- set(FILTER_FLAGS "-O2;-O3")
423
- foreach (FILTER_FLAG ${FILTER_FLAGS})
424
- string(REPLACE ${FILTER_FLAG} "-O1" CMAKE_Fortran_FLAGS_RELEASE ${CMAKE_Fortran_FLAGS_RELEASE})
425
- endforeach ()
+if (${CMAKE_Fortran_COMPILER_VERSION} VERSION_LESS_EQUAL 3)
+ set(CMAKE_Fortran_FLAGS_RELEASE "${CMAKE_Fortran_FLAGS_RELEASE} -fno-unroll-loops")
+endif ()
426
endif ()
427
428
0 commit comments