nuttx: Add a kconfig for wasi-threads (#2343)

nuttx apps counterpart: https://github.com/apache/nuttx-apps/pull/1823
This commit is contained in:
YAMAMOTO Takashi 2023-07-07 16:12:00 +09:00 committed by GitHub
parent aafea39b8c
commit a300b627d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -265,6 +265,15 @@ else
CFLAGS += -DWASM_ENABLE_THREAD_MGR=0
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)
CFLAGS += -DWASM_ENABLE_LIB_PTHREAD=1
CSRCS += lib_pthread_wrapper.c