Skip to content

Commit

Permalink
Merge pull request #4705 from martin-frbg/issue4703
Browse files Browse the repository at this point in the history
Fix INTERFACE64 builds on Loongarch64
  • Loading branch information
martin-frbg committed May 18, 2024
2 parents aa259b1 + 6494f43 commit 700ea74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/fc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ if (${F_COMPILER} STREQUAL "GFORTRAN" OR ${F_COMPILER} STREQUAL "F95" OR CMAKE_F
else()
set(FCOMMON_OPT "${FCOMMON_OPT} -mabi=lp64")
endif ()
if (INTERFACE64)
set(FCOMMON_OPT "${FCOMMON_OPT} -fdefault-integer-8")
endif ()
else ()
CHECK_C_COMPILER_FLAG("-mabi=ilp32d" COMPILER_SUPPORT_ILP32D_ABI)
if(COMPILER_SUPPORT_ILP32D_ABI)
Expand Down

0 comments on commit 700ea74

Please sign in to comment.