Skip to content

Commit 03e11e2

Browse files
committed
Change Clang's default target to wasm32-wasip1
No longer use `wasm32-wasi` since Clang issues a deprecation warning about that. This fixes the `clang` binary, by default, emitting a warning for example in the final build.
1 parent eacaeb6 commit 03e11e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/wasi-sdk-toolchain.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ ExternalProject_Add(llvm-build
8888
-DLLVM_INCLUDE_BENCHMARKS=OFF
8989
-DLLVM_INCLUDE_EXAMPLES=OFF
9090
-DLLVM_TARGETS_TO_BUILD=WebAssembly
91-
-DLLVM_DEFAULT_TARGET_TRIPLE=wasm32-wasi
91+
-DLLVM_DEFAULT_TARGET_TRIPLE=wasm32-wasip1
9292
-DLLVM_INSTALL_BINUTILS_SYMLINKS=TRUE
9393
-DLLVM_ENABLE_LIBXML2=OFF
9494
# Pass `-s` to strip symbols by default and shrink the size of the

0 commit comments

Comments
 (0)