Skip to content

[wasm] Rename wasm32-unknown-wasi to wasm32-unknown-wasip1 #83167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kateinoigakukun
Copy link
Member

@kateinoigakukun kateinoigakukun commented Jul 18, 2025

This PR renames the WebAssembly target triple from wasm32-unknown-wasi to wasm32-unknown-wasip1 to align with the broader WebAssembly ecosystem's naming conventions.

Motivation

The WebAssembly ecosystem has been migrating from the generic wasi target name to more explicit version-specific names like wasip1 and wasip2. This change has been adopted across multiple toolchains and language ecosystems:

The "p1" suffix explicitly indicates WASI Preview 1, which helps distinguish it from the newer WASI Preview 2 (wasip2) and provides clarity about which version of the WASI specification is being targeted.

Also we already use wasm32-unknown-wasip1 for Embedded WASI target, and having different names for Embedded and non-Embedded is confusing users.

Compatibility

Since this is a breaking change to the target name, users will need to update their build configurations. However, the underlying functionality remains identical; only the target identifier changes. Given that we still don't have a stable release for the SDK, I believe it's not too late to migrate.

@kateinoigakukun
Copy link
Member Author

swiftlang/swift-sdk-generator#229
@swift-ci build toolchain Linux

@kateinoigakukun kateinoigakukun marked this pull request as ready for review July 18, 2025 05:32
@kateinoigakukun
Copy link
Member Author

swiftlang/swift-sdk-generator#229
@swift-ci smoke test

Copy link
Contributor

@MaxDesiatov MaxDesiatov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. I suppose we shouldn't worry about possible naming collisions with embedded, as Embedded Swift uses embedded subdirectory anyway.

@MaxDesiatov MaxDesiatov added WebAssembly Platform: WebAssembly WASI WebAssembly System Interface support build-script Area → utils: The build script cmake python Flag: Python source code labels Jul 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-script Area → utils: The build script cmake python Flag: Python source code WASI WebAssembly System Interface support WebAssembly Platform: WebAssembly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants