Skip to content

Commit

Permalink
Update compiler target for wasi-threads examples
Browse files Browse the repository at this point in the history
The target was updated to wasm32-wasi-threads in wasi-libc (and most likely will stay like that for a while)
WebAssembly/wasi-libc#381
  • Loading branch information
loganek committed Jan 24, 2023
1 parent 9cf55f9 commit 5238c76
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/compilation_on_android_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ jobs:
- name: build wasi-libc (needed for wasi-threads)
run: |
git clone --branch wasi-sdk-17 https://github.com/WebAssembly/wasi-libc
git clone https://github.com/WebAssembly/wasi-libc
cd wasi-libc
make \
AR=/opt/wasi-sdk/bin/llvm-ar \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/compilation_on_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ jobs:
- name: build wasi-libc (needed for wasi-threads)
run: |
git clone --branch wasi-sdk-17 https://github.com/WebAssembly/wasi-libc
git clone https://github.com/WebAssembly/wasi-libc
cd wasi-libc
make \
AR=/opt/wasi-sdk/bin/llvm-ar \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/compilation_on_sgx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ jobs:
- name: build wasi-libc (needed for wasi-threads)
run: |
git clone --branch wasi-sdk-17 https://github.com/WebAssembly/wasi-libc
git clone https://github.com/WebAssembly/wasi-libc
cd wasi-libc
make \
AR=/opt/wasi-sdk/bin/llvm-ar \
Expand Down
2 changes: 1 addition & 1 deletion samples/wasi-threads/wasm-apps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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_C_COMPILER_TARGET "wasm32-wasi-threads")

function (compile_sample SOURCE_FILE)
get_filename_component (FILE_NAME ${SOURCE_FILE} NAME_WLE)
Expand Down

0 comments on commit 5238c76

Please sign in to comment.