Skip to content

Commit

Permalink
AOCC support (#203)
Browse files Browse the repository at this point in the history
AOCC support.

Co-authored-by: Chris Thomas <[email protected]>
  • Loading branch information
DJDavies2 and ctgh authored May 7, 2024
1 parent 0257a80 commit ca77a77
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ elseif ("${CMAKE_Fortran_COMPILER_ID}" MATCHES "Intel")
-diag-disable 10121 \
-assume norealloc_lhs \
${CMAKE_Fortran_FLAGS}"
#-Wp,-P \
)
elseif ("${CMAKE_Fortran_COMPILER_ID}" MATCHES "Flang")
set(OPS_DEFAULT_Fortran_FLAGS "\
-fdefault-integer-8 -fdefault-real-8 \
${CMAKE_Fortran_FLAGS}"
#-Wp,-P \
)
set(CMAKE_Fortran_DEBUG_FLAGS "\
Expand Down
2 changes: 2 additions & 0 deletions src/opsinputs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ elseif ("${CMAKE_Fortran_COMPILER_ID}" MATCHES "Intel")
set(FORTRAN_FLAGS_64_BIT_TYPES "-integer-size 64 -real-size 64")
elseif ("${CMAKE_Fortran_COMPILER_ID}" MATCHES "NAG")
set(FORTRAN_FLAGS_64_BIT_TYPES "-double")
elseif ("${CMAKE_Fortran_COMPILER_ID}" MATCHES "Flang")
set(FORTRAN_FLAGS_64_BIT_TYPES "-fdefault-integer-8 -fdefault-real-8")
endif()
set_source_files_properties(opsinputs_cxgenerate_mod.F90 PROPERTIES
COMPILE_FLAGS "${FORTRAN_FLAGS_64_BIT_TYPES}")
Expand Down

0 comments on commit ca77a77

Please sign in to comment.