Rename thread_spawn import (#1907)

Following the wit-defined ABI:
https://github.com/WebAssembly/wasi-threads/pull/26

cf. https://github.com/WebAssembly/wasi-libc/pull/387
This commit is contained in:
YAMAMOTO Takashi
2023-01-27 07:45:34 +09:00
committed by GitHub
parent 879563047f
commit 42f8fed20e
5 changed files with 24 additions and 9 deletions

View File

@ -14,7 +14,7 @@ endif ()
set (CMAKE_SYSROOT "${WASI_SYSROOT}")
set (CMAKE_C_COMPILER "${WASI_SDK_DIR}/bin/clang")
set (CMAKE_ASM_COMPILER "${WASI_SDK_DIR}/bin/clang")
set (CMAKE_C_COMPILER_TARGET "wasm32-wasi")
set (CMAKE_EXE_LINKER_FLAGS "-target wasm32-wasi-threads")
function (compile_sample SOURCE_FILE)
get_filename_component (FILE_NAME ${SOURCE_FILE} NAME_WLE)
@ -36,4 +36,4 @@ function (compile_sample SOURCE_FILE)
endfunction ()
compile_sample(no_pthread.c wasi_thread_start.S)
compile_sample(thread_termination.c wasi_thread_start.S)
compile_sample(thread_termination.c wasi_thread_start.S)