mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-30 21:47:24 +00:00
nuttx: Add a kconfig for wasi-threads (#2343)
nuttx apps counterpart: https://github.com/apache/nuttx-apps/pull/1823
This commit is contained in:
parent
aafea39b8c
commit
a300b627d5
|
@ -265,6 +265,15 @@ else
|
||||||
CFLAGS += -DWASM_ENABLE_THREAD_MGR=0
|
CFLAGS += -DWASM_ENABLE_THREAD_MGR=0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_INTERPRETERS_WAMR_LIB_WASI_THREADS),y)
|
||||||
|
CFLAGS += -DWASM_ENABLE_LIB_WASI_THREADS=1
|
||||||
|
CSRCS += lib_wasi_threads_wrapper.c
|
||||||
|
CSRCS += tid_allocator.c
|
||||||
|
VPATH += $(IWASM_ROOT)/libraries/lib-wasi-threads
|
||||||
|
else
|
||||||
|
CFLAGS += -DWASM_ENABLE_LIB_WASI_THREADS=0
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_INTERPRETERS_WAMR_LIB_PTHREAD),y)
|
ifeq ($(CONFIG_INTERPRETERS_WAMR_LIB_PTHREAD),y)
|
||||||
CFLAGS += -DWASM_ENABLE_LIB_PTHREAD=1
|
CFLAGS += -DWASM_ENABLE_LIB_PTHREAD=1
|
||||||
CSRCS += lib_pthread_wrapper.c
|
CSRCS += lib_pthread_wrapper.c
|
||||||
|
|
Loading…
Reference in New Issue
Block a user