Skip to content

Commit

Permalink
use isTrue instead of ifdef
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
  • Loading branch information
jabraham17 committed Jan 6, 2025
1 parent f652882 commit 698ee64
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion compiler/make/Makefile.compiler.head
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ifeq ($(ASSERTS),1)
DYNO_ENABLE_ASSERTIONS = 1
endif

ifeq ($(CHPL_DEVELOPER), 0)
ifneq (, $(call isTrue, $(CHPL_DEVELOPER)))
OPTIMIZE=1
else
DEBUG=1
Expand Down
5 changes: 4 additions & 1 deletion make/Makefile.base
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ ifndef CHPL_MAKE_HOST_PLATFORM
$(error error running util/printchplenv -- please see error above)
endif

# set CHPL_DEVELOPER if its not set
CHPL_DEVELOPER ?= 0

# Try this to debug issues with CHPL_MAKE_* variables
# $(info $(CHPL_MAKE_CHPLENV_CACHE))

Expand Down Expand Up @@ -138,7 +141,7 @@ CHPL_MAKE_SYSTEM_LINK_ARGS = $(CHPL_MAKE_TARGET_SYSTEM_LINK_ARGS)
else
CHPL_MAKE_COMPILER = $(CHPL_MAKE_HOST_COMPILER)
CHPL_MAKE_CC = $(CHPL_MAKE_HOST_CC)
CHPL_MAKE_CXX = $(CHPL_MAKE_HOST_CXX)
CHPL_MAKE_CXX = $(CHPL_MAKE_OST_CXX)
CHPL_MAKE_PLATFORM = $(CHPL_MAKE_HOST_PLATFORM)
CHPL_MAKE_ARCH = $(CHPL_MAKE_HOST_ARCH)
CHPL_MAKE_MEM = $(CHPL_MAKE_HOST_MEM)
Expand Down
2 changes: 1 addition & 1 deletion modules/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export CHPL_MAKE_HOME=$(shell pwd)/..
endif

# Generate tags only if $TAGS turned on explicitly, or if $CHPL_DEVELOPER is on
ifdef CHPL_DEVELOPER
ifeq (, $(call isTrue, $(CHPL_DEVELOPER)))
TAGS=1
endif

Expand Down
2 changes: 1 addition & 1 deletion runtime/etc/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ printmultilocalelibdeps:

checkRtLibDir:
ifeq ($(wildcard $(CHPL_RT_LIB_DIR)),)
ifdef CHPL_DEVELOPER
ifeq (, $(call isTrue, $(CHPL_DEVELOPER)))
$(warning Expected runtime library in $(CHPL_RT_LIB_DIR))
endif
ifeq ($(CHPL_MODULE_HOME),$(CHPL_HOME))
Expand Down
2 changes: 1 addition & 1 deletion runtime/make/Makefile.runtime.head
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# settings for the build
#
DEPEND=1
ifdef CHPL_DEVELOPER
ifeq (, $(call isTrue, $(CHPL_DEVELOPER)))
DEBUG=1
WARNINGS=1
TAGS=1
Expand Down
2 changes: 1 addition & 1 deletion third-party/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export CHPL_MAKE_HOME=$(shell pwd)/..
endif
include $(CHPL_MAKE_HOME)/make/Makefile.base

ifdef CHPL_DEVELOPER
ifeq (, $(call isTrue, $(CHPL_DEVELOPER)))
DEBUG=1
export DEBUG
WARNINGS=1
Expand Down

0 comments on commit 698ee64

Please sign in to comment.