Skip to content

Commit

Permalink
Merge pull request #4170 from felixonmars/patch-2
Browse files Browse the repository at this point in the history
Fix 64-bit fortran options for riscv64
  • Loading branch information
martin-frbg authored Aug 12, 2023
2 parents ebc157f + f5506b0 commit 0e5d56a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmake/fc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ if (${F_COMPILER} STREQUAL "GFORTRAN" OR ${F_COMPILER} STREQUAL "F95" OR CMAKE_F
set(FCOMMON_OPT "${FCOMMON_OPT} -mabi=lp32")
endif ()
endif ()
if (RISCV64)
if (BINARY64)
if (INTERFACE64)
set(FCOMMON_OPT "${FCOMMON_OPT} -fdefault-integer-8")
endif ()
endif ()
endif ()
else ()
if (BINARY64)
set(FCOMMON_OPT "${FCOMMON_OPT} -m64")
Expand Down

0 comments on commit 0e5d56a

Please sign in to comment.