Skip to content

Commit 33637d0

Browse files
authored
Fix a warning when passing logicals to C from Fortran (#804)
1 parent 71a5d0d commit 33637d0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

cmake/SetCompilerFlags.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ if (OCCA_ENABLE_FORTRAN)
8686

8787
set_optional_fortran_flag(SUPPORTED_WNO_INTEGER_DIVISION_Fortran_FLAGS "-Wno-integer-division")
8888

89+
# Fix for:
90+
# https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-2025-warning-5472/td-p/1643667
91+
if (CMAKE_Fortran_COMPILER_ID STREQUAL "IntelLLVM")
92+
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fpscomp logicals")
93+
endif()
8994
endif()
9095

9196
check_cxx_compiler_flag("-fno-strict-aliasing" COMPILER_SUPPORTS_NO_STRICT_ALIASING)

0 commit comments

Comments
 (0)