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:
@ -198,9 +198,7 @@ CSRCS += utils.c
|
|||||||
VPATH += $(IWASM_ROOT)/libraries/debug-engine
|
VPATH += $(IWASM_ROOT)/libraries/debug-engine
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_INTERPRETERS_WAMR_STACK_GUARD_SIZE),)
|
ifneq ($(CONFIG_INTERPRETERS_WAMR_STACK_GUARD_SIZE),)
|
||||||
CFLAGS += -DWASM_STACK_GUARD_SIZE=0
|
|
||||||
else
|
|
||||||
CFLAGS += -DWASM_STACK_GUARD_SIZE=CONFIG_INTERPRETERS_WAMR_STACK_GUARD_SIZE
|
CFLAGS += -DWASM_STACK_GUARD_SIZE=CONFIG_INTERPRETERS_WAMR_STACK_GUARD_SIZE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user