Skip to content

Commit efa6d2a

Browse files
committed
samples/wasi-threads: Update the target to match the latest wasi-libc
1 parent 193f11d commit efa6d2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/wasi-threads/wasm-apps/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ endif ()
1414
set (CMAKE_SYSROOT "${WASI_SYSROOT}")
1515
set (CMAKE_C_COMPILER "${WASI_SDK_DIR}/bin/clang")
1616
set (CMAKE_ASM_COMPILER "${WASI_SDK_DIR}/bin/clang")
17-
set (CMAKE_C_COMPILER_TARGET "wasm32-wasi")
17+
set (CMAKE_C_COMPILER_TARGET "wasm32-wasi-threads")
1818

1919
function (compile_sample SOURCE_FILE)
2020
get_filename_component (FILE_NAME ${SOURCE_FILE} NAME_WLE)
@@ -36,4 +36,4 @@ function (compile_sample SOURCE_FILE)
3636
endfunction ()
3737

3838
compile_sample(no_pthread.c wasi_thread_start.S)
39-
compile_sample(thread_termination.c wasi_thread_start.S)
39+
compile_sample(thread_termination.c wasi_thread_start.S)

0 commit comments

Comments
 (0)