Skip to content

Commit

Permalink
Merge pull request #982 from GEOS-ESM/bugfix/mathomp4/test-gcc14-run
Browse files Browse the repository at this point in the history
gcc14: Compile icepack data file at -O0
  • Loading branch information
mathomp4 authored Aug 19, 2024
2 parents 95b31b7 + f075853 commit d21d478
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,9 @@ esma_add_library (${this}

target_compile_definitions (${this} PRIVATE USE_NETCDF GEOSCOUPLED FORTRANUNDERSCORE)

# GCC 14 is taking *forever* to compile icepack_shortwave_data.F90
# so we're going to use -O0 for this file only
if (CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
set_source_files_properties(icepack/columnphysics/icepack_shortwave_data.F90 PROPERTIES COMPILE_OPTIONS ${FOPT0})
endif ()

0 comments on commit d21d478

Please sign in to comment.