Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ override NEMSDIR=$(ROOTDIR)/NEMS
# it explicitly to make sure. Never change this:
override SHELL=/bin/sh

# S2S_DEBUG_MODULE is used by before_components.mk for s2s-model to
# load machine-dependent esmf debug module. Its default value is false
# Trigger S2S_DEBUG_MODULE in one of two ways:
# 1) argument to make call: e.g. make app=* S2S_DEBUG_MODULE=true build
# 2) env before make call: e.g. export S2S_DEBUG_MODULE=true; make app=* build
S2S_DEBUG_MODULE?=false

# Set global variables and load utilities:
include $(NEMSDIR)/src/incmake/infinity.mk # Recursion detector
include $(NEMSDIR)/src/incmake/gmsl/gmsl # GNU Make Standard Library
Expand Down
9 changes: 9 additions & 0 deletions src/incmake/relist_components.mk
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ override_components := \
override COMPONENTS := $(override_components)

########################################################################
# If FV3 MOM6 CICE all specify DEBUG=Y, set NEMS_BUILDOPT to DEBUG=Y
ifneq (,$(findstring DEBUG=Y,$(FV3_MAKEOPT)))
ifneq (,$(findstring DEBUG=Y,$(MOM6_MAKEOPT)))
ifneq (,$(findstring DEBUG=Y,$(CICE_MAKEOPT)))
NEMS_BUILDOPT:=DEBUG=Y
endif
endif
endif
$(info NEMS_BUILDOPT IS $(NEMS_BUILDOPT))

# Tools to print component options.

Expand Down