Skip to content

Commit d21d478

Browse files
authored
Merge pull request #982 from GEOS-ESM/bugfix/mathomp4/test-gcc14-run
gcc14: Compile icepack data file at -O0
2 parents 95b31b7 + f075853 commit d21d478

File tree

1 file changed

+6
-0
lines changed
  • GEOSogcm_GridComp/GEOSseaice_GridComp/CICE_GEOSPlug/cice6_cmake

1 file changed

+6
-0
lines changed

GEOSogcm_GridComp/GEOSseaice_GridComp/CICE_GEOSPlug/cice6_cmake/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,9 @@ esma_add_library (${this}
127127

128128
target_compile_definitions (${this} PRIVATE USE_NETCDF GEOSCOUPLED FORTRANUNDERSCORE)
129129

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

0 commit comments

Comments
 (0)