Skip to content

Commit

Permalink
GNU: add architecture compiler flag
Browse files Browse the repository at this point in the history
  • Loading branch information
awnawab committed Mar 15, 2024
1 parent acbb988 commit bdb065a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/ecwam_compile_flags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ if(CMAKE_Fortran_COMPILER_ID MATCHES "GNU")
if( NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 10 )
ecbuild_add_fortran_flags( "-fallow-argument-mismatch" NAME argument_mismatch )
endif()
if( NOT CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "aarch64" )
ecbuild_add_fortran_flags( "-m64" NAME gnu_arch )
endif()
endif()

if(CMAKE_Fortran_COMPILER_ID MATCHES "Flang")
Expand Down

0 comments on commit bdb065a

Please sign in to comment.