yamt commented on code in PR #1638:
URL: https://github.com/apache/nuttx-apps/pull/1638#discussion_r1129839107


##########
interpreters/Wasm.mk:
##########
@@ -25,6 +25,10 @@ WASM_INITIAL_MEMORY ?= 65536
 STACKSIZE           ?= $(CONFIG_DEFAULT_TASK_STACKSIZE)
 PRIORITY            ?= SCHED_PRIORITY_DEFAULT
 
+ifeq ($(shell test $(WASM_INITIAL_MEMORY) -lt $(STACKSIZE); echo $$?),0)
+  WASM_INITIAL_MEMORY := $(shell expr $(STACKSIZE) + $(WASM_INITIAL_MEMORY))
+endif

Review Comment:
   i guess it's simpler to stop specifying init memory. (at least for the 
default)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to