Skip to content

Commit 1982cdc

Browse files
committed
Remove wasm32-wasi and wasm32-wasi-threads targets
These are now named `wasm32-wasip1` and `wasm32-wasip1-threads`. The previous targets take time to build in CI and space in the distribution, and clang is warning about their usage. Remove them now that the warning has been around for a bit.
1 parent 5faf808 commit 1982cdc

5 files changed

Lines changed: 3 additions & 42 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
1111
project(wasi-sdk)
1212
include(ExternalProject)
1313

14-
set(WASI_SDK_TARGETS "wasm32-wasi;wasm32-wasip1;wasm32-wasip2;wasm32-wasip1-threads;wasm32-wasi-threads"
14+
set(WASI_SDK_TARGETS "wasm32-wasip1;wasm32-wasip2;wasm32-wasip1-threads"
1515
CACHE STRING "List of WASI targets to build")
1616
option(WASI_SDK_BUILD_TOOLCHAIN "Build a toolchain instead of the sysroot" OFF)
1717

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ is to build the sysroot:
7474
```shell script
7575
cmake -G Ninja -B build/sysroot -S . \
7676
-DCMAKE_INSTALL_PREFIX=build/install \
77-
-DCMAKE_TOOLCHAIN_FILE=build/install/share/cmake/wasi-sdk.cmake \
77+
-DCMAKE_TOOLCHAIN_FILE=build/install/share/cmake/wasi-sdk-p2.cmake \
7878
-DCMAKE_C_COMPILER_WORKS=ON \
7979
-DCMAKE_CXX_COMPILER_WORKS=ON
8080
cmake --build build/sysroot --target install

ci/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fi
3333
# Use the just-built toolchain and its `CMAKE_TOOLCHAIN_FILE` to build a
3434
# sysroot.
3535
cmake -G Ninja -B $build_dir/sysroot -S . \
36-
"-DCMAKE_TOOLCHAIN_FILE=$build_dir/install/share/cmake/wasi-sdk.cmake" \
36+
"-DCMAKE_TOOLCHAIN_FILE=$build_dir/install/share/cmake/wasi-sdk-p1.cmake" \
3737
-DCMAKE_C_COMPILER_WORKS=ON \
3838
-DCMAKE_CXX_COMPILER_WORKS=ON \
3939
-DWASI_SDK_INCLUDE_TESTS=ON \

cmake/wasi-sdk-toolchain.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,6 @@ endfunction()
298298

299299
copy_misc_file(src/config/config.sub misc)
300300
copy_misc_file(src/config/config.guess misc)
301-
copy_misc_file(wasi-sdk.cmake cmake)
302301
copy_misc_file(wasi-sdk-pthread.cmake cmake)
303302
copy_misc_file(wasi-sdk-p1.cmake cmake)
304303
copy_misc_file(wasi-sdk-p2.cmake cmake)

wasi-sdk.cmake

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)