From 5238c7679132418f41b7bce0e3ea98a2607d47c5 Mon Sep 17 00:00:00 2001 From: Marcin Kolny Date: Tue, 24 Jan 2023 10:23:34 +0000 Subject: [PATCH] Update compiler target for wasi-threads examples The target was updated to wasm32-wasi-threads in wasi-libc (and most likely will stay like that for a while) https://github.com/WebAssembly/wasi-libc/pull/381 --- .github/workflows/compilation_on_android_ubuntu.yml | 2 +- .github/workflows/compilation_on_macos.yml | 2 +- .github/workflows/compilation_on_sgx.yml | 2 +- samples/wasi-threads/wasm-apps/CMakeLists.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/compilation_on_android_ubuntu.yml b/.github/workflows/compilation_on_android_ubuntu.yml index bf31c499fc..6b26d9ccc6 100644 --- a/.github/workflows/compilation_on_android_ubuntu.yml +++ b/.github/workflows/compilation_on_android_ubuntu.yml @@ -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 \ diff --git a/.github/workflows/compilation_on_macos.yml b/.github/workflows/compilation_on_macos.yml index 1e5ff415b6..e39bcdd5c4 100644 --- a/.github/workflows/compilation_on_macos.yml +++ b/.github/workflows/compilation_on_macos.yml @@ -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 \ diff --git a/.github/workflows/compilation_on_sgx.yml b/.github/workflows/compilation_on_sgx.yml index c4d4142dde..fd2c118d07 100644 --- a/.github/workflows/compilation_on_sgx.yml +++ b/.github/workflows/compilation_on_sgx.yml @@ -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 \ diff --git a/samples/wasi-threads/wasm-apps/CMakeLists.txt b/samples/wasi-threads/wasm-apps/CMakeLists.txt index 0da9aa749f..ed5ea57493 100644 --- a/samples/wasi-threads/wasm-apps/CMakeLists.txt +++ b/samples/wasi-threads/wasm-apps/CMakeLists.txt @@ -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)