diff --git a/Application.mk b/Application.mk index eda44d9f3..121532cdb 100644 --- a/Application.mk +++ b/Application.mk @@ -268,4 +268,8 @@ distclean:: clean WASM_BUILD ?= n -include $(APPDIR)/tools/Wasm.mk +ifeq ($(WASM_BUILD),y) + ifneq ($(CONFIG_INTERPRETERS_WAMR)$(CONFIG_INTERPRETERS_WASM)$(CONFIG_INTERPRETERS_TOYWASM),) + include $(APPDIR)/tools/Wasm.mk + endif +endif