From c078b2ee7a0506135d6399e7b1eb4058b631d05a Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 5 Jul 2023 20:36:46 +0900 Subject: [PATCH] wamr: add a kconfig to control wasi-threads cf. https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/doc/pthread_impls.md --- interpreters/wamr/Kconfig | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/interpreters/wamr/Kconfig b/interpreters/wamr/Kconfig index acf55eba5..823030ba7 100644 --- a/interpreters/wamr/Kconfig +++ b/interpreters/wamr/Kconfig @@ -112,9 +112,17 @@ config INTERPRETERS_WAMR_THREAD_MGR bool "Enable thread manager" default n -config INTERPRETERS_WAMR_LIB_PTHREAD - bool "Enable lib pthread" +config INTERPRETERS_WAMR_LIB_WASI_THREADS + bool "Enable wasi-threads" default n + ---help--- + See https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/doc/pthread_impls.md + +config INTERPRETERS_WAMR_LIB_PTHREAD + bool "Enable lib pthread (legacy)" + default n + ---help--- + See https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/doc/pthread_impls.md config INTERPRETERS_WAMR_LIB_PTHREAD_SEMAPHORE bool "Enable semaphore"