Skip to content

Commit dce7591

Browse files
committed
nuttx: if STACK_GUARD_SIZE is not set, leave it to config.h
cf. apache/nuttx-apps#2241
1 parent 40b430f commit dce7591

File tree

1 file changed

+1
-3
lines changed
  • product-mini/platforms/nuttx

1 file changed

+1
-3
lines changed

product-mini/platforms/nuttx/wamr.mk

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,7 @@ CSRCS += utils.c
187187
VPATH += $(IWASM_ROOT)/libraries/debug-engine
188188
endif
189189

190-
ifeq ($(CONFIG_INTERPRETERS_WAMR_STACK_GUARD_SIZE),)
191-
CFLAGS += -DWASM_STACK_GUARD_SIZE=0
192-
else
190+
ifneq ($(CONFIG_INTERPRETERS_WAMR_STACK_GUARD_SIZE),)
193191
CFLAGS += -DWASM_STACK_GUARD_SIZE=CONFIG_INTERPRETERS_WAMR_STACK_GUARD_SIZE
194192
endif
195193

0 commit comments

Comments
 (0)