Skip to content

Commit

Permalink
Wasm.mk: disable by default
Browse files Browse the repository at this point in the history
Fixes partly: apache#2046
  • Loading branch information
yamt committed Dec 25, 2023
1 parent 730370e commit be9d91b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions interpreters/wamr/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ config INTERPRETERS_WAMR_LIBC_BUILTIN
bool "Enable built-in libc"
default n

config INTERPRETERS_WAMR_BUILD_WASM_MODULES_FOR_WAMR_LIBC_BUILTIN
bool "Build WASM modules for WAMR libc-builtin (Experimental)"
default n
depends on INTERPRETERS_WAMR_LIBC_BUILTIN

config INTERPRETERS_WAMR_LIBC_WASI
bool "Enable WASI libc"
select PSEUDOFS_SOFTLINKS
Expand Down
3 changes: 2 additions & 1 deletion tools/Wasm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
#
############################################################################

# Only build wasm if one of the following runtime is enabled

ifeq ($(CONFIG_INTERPRETERS_WAMR_BUILD_WASM_MODULES_FOR_WAMR_LIBC_BUILTIN),y)
ifneq ($(CONFIG_INTERPRETERS_WAMR)$(CONFIG_INTERPRETERS_WASM)$(CONFIG_INTERPRETERS_TOYWASM),)
include $(APPDIR)$(DELIM)tools$(DELIM)WASI-SDK.defs
include $(APPDIR)$(DELIM)interpreters$(DELIM)wamr$(DELIM)Toolchain.defs
Expand Down Expand Up @@ -114,3 +114,4 @@ clean::
endif # WASM_BUILD

endif # CONFIG_INTERPRETERS_WAMR || CONFIG_INTERPRETERS_WASM || CONFIG_INTERPRETERS_TOYWASM
endif

0 comments on commit be9d91b

Please sign in to comment.