Skip to content

Commit 8930743

Browse files
yamtxiaoxiang781216
authored andcommitted
Wasm.mk: disable by default
Fixes partly: #2046 Also, this fixes warnings like: ``` spacetanuki% ./tools/configure.sh -E sim:wamr Copy files Select CONFIG_HOST_MACOS=y Refreshing... /usr/local/bin/bash: line 1: /bin/clang: No such file or directory /usr/local/bin/bash: line 1: /bin/clang: No such file or directory /usr/local/bin/bash: line 1: /bin/clang: No such file or directory /usr/local/bin/bash: line 1: /bin/clang: No such file or directory /usr/local/bin/bash: line 1: /bin/clang: No such file or directory /usr/local/bin/bash: line 1: /bin/clang: No such file or directory /usr/local/bin/bash: line 1: /bin/clang: No such file or directory /usr/local/bin/bash: line 1: /bin/clang: No such file or directory /usr/local/bin/bash: line 1: /bin/clang: No such file or directory CP: arch/dummy/Kconfig to /Users/yamamoto/git/nuttx/nuttx/arch/dummy/dummy_kconf ig CP: boards/dummy/Kconfig to /Users/yamamoto/git/nuttx/nuttx/boards/dummy/dummy_k config /usr/local/bin/bash: line 1: /bin/clang: No such file or directory /usr/local/bin/bash: line 1: /bin/clang: No such file or directory /usr/local/bin/bash: line 1: /bin/clang: No such file or directory /usr/local/bin/bash: line 1: /bin/clang: No such file or directory /usr/local/bin/bash: line 1: /bin/clang: No such file or directory /usr/local/bin/bash: line 1: /bin/clang: No such file or directory ```
1 parent 7047fa5 commit 8930743

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

interpreters/wamr/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ config INTERPRETERS_WAMR_LIBC_BUILTIN
7575
bool "Enable built-in libc"
7676
default n
7777

78+
config INTERPRETERS_WAMR_BUILD_MODULES_FOR_NUTTX
79+
bool "Build WASM modules for NuttX system interface (Experimental)"
80+
default n
81+
depends on INTERPRETERS_WAMR_LIBC_BUILTIN
82+
7883
config INTERPRETERS_WAMR_LIBC_WASI
7984
bool "Enable WASI libc"
8085
select PSEUDOFS_SOFTLINKS

tools/Wasm.mk

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919
#
2020
############################################################################
2121

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

24-
ifneq ($(CONFIG_INTERPRETERS_WAMR)$(CONFIG_INTERPRETERS_WASM)$(CONFIG_INTERPRETERS_TOYWASM),)
23+
ifeq ($(CONFIG_INTERPRETERS_WAMR_BUILD_MODULES_FOR_NUTTX),y)
2524
include $(APPDIR)$(DELIM)tools$(DELIM)WASI-SDK.defs
2625
include $(APPDIR)$(DELIM)interpreters$(DELIM)wamr$(DELIM)Toolchain.defs
2726

@@ -113,4 +112,4 @@ clean::
113112

114113
endif # WASM_BUILD
115114

116-
endif # CONFIG_INTERPRETERS_WAMR || CONFIG_INTERPRETERS_WASM || CONFIG_INTERPRETERS_TOYWASM
115+
endif

0 commit comments

Comments
 (0)