nuttx: If STACK_GUARD_SIZE is not set, leave it to config.h (#2927)

cf. https://github.com/apache/nuttx-apps/pull/2241
This commit is contained in:
YAMAMOTO Takashi 2024-01-23 12:52:25 +09:00 committed by GitHub
parent 627debcefb
commit 4bafa40052
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -198,9 +198,7 @@ CSRCS += utils.c
VPATH += $(IWASM_ROOT)/libraries/debug-engine
endif
ifeq ($(CONFIG_INTERPRETERS_WAMR_STACK_GUARD_SIZE),)
CFLAGS += -DWASM_STACK_GUARD_SIZE=0
else
ifneq ($(CONFIG_INTERPRETERS_WAMR_STACK_GUARD_SIZE),)
CFLAGS += -DWASM_STACK_GUARD_SIZE=CONFIG_INTERPRETERS_WAMR_STACK_GUARD_SIZE
endif