Skip to content

Commit

Permalink
Apply pull 1251 to all GCC targets
Browse files Browse the repository at this point in the history
In order to patch GCC arguments when using GCC-10+ a line `^FCCOMPAT` is
necessary in `configure.wrf`. This patch is an extension to
wrf-model#1251.
  • Loading branch information
stephenmsachs committed Apr 21, 2023
1 parent 21c7214 commit f96e4c0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions arch/configure.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,9 @@ FCDEBUG = # -g $(FCNOOPT)
FORMAT_FIXED = -ffixed-form
FORMAT_FREE = -ffree-form -ffree-line-length-huge
FCSUFFIX =
FCCOMPAT =
BYTESWAPIO = -fendian=big
FCBASEOPTS_NO_G = -Wno=101,139,155,158 $(FORMAT_FREE) $(BYTESWAPIO)
FCBASEOPTS_NO_G = -Wno=101,139,155,158 $(FORMAT_FREE) $(BYTESWAPIO) $(FCCOMPAT)
FCBASEOPTS = $(FCBASEOPTS_NO_G) $(FCDEBUG)
MODULE_SRCH_FLAG = -fmod=$(WRF_SRC_ROOT_DIR)/main
TRADFLAG = CONFIGURE_TRADFLAG
Expand Down Expand Up @@ -984,8 +985,9 @@ FCDEBUG = # -g $(FCNOOPT)
FORMAT_FIXED = -ffixed-form
FORMAT_FREE = -ffree-form -ffree-line-length-huge
FCSUFFIX =
FCCOMPAT =
BYTESWAPIO = -fendian=big
FCBASEOPTS_NO_G = -Wno=101,139,155,158 $(FORMAT_FREE) $(BYTESWAPIO)
FCBASEOPTS_NO_G = -Wno=101,139,155,158 $(FORMAT_FREE) $(BYTESWAPIO) $(FCCOMPAT)
FCBASEOPTS = $(FCBASEOPTS_NO_G) $(FCDEBUG)
LIB_LOCAL = -L/usr/lib -lSystemStubs
MODULE_SRCH_FLAG = -fmod=$(WRF_SRC_ROOT_DIR)/main
Expand Down Expand Up @@ -2054,6 +2056,7 @@ FCDEBUG = # -g $(FCNOOPT) # -fbacktrace -ggdb -fcheck=bounds,do,m
FORMAT_FIXED = -ffixed-form
FORMAT_FREE = -ffree-form -ffree-line-length-none
FCSUFFIX =
FCCOMPAT =
BYTESWAPIO = -fconvert=big-endian -frecord-marker=4
FCBASEOPTS_NO_G = -w $(FORMAT_FREE) $(BYTESWAPIO) $(FCCOMPAT)
FCBASEOPTS = $(FCBASEOPTS_NO_G) $(FCDEBUG)
Expand Down

0 comments on commit f96e4c0

Please sign in to comment.