Skip to content
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

Promote the wasm32-wasip2 target to Tier 2 #126967

Merged
merged 4 commits into from
Jul 17, 2024

Commits on Jul 9, 2024

  1. Promote the wasm32-wasip2 target to Tier 2

    This commit promotes the `wasm32-wasip2` Rust target to tier 2 as
    proposed in rust-lang/compiler-team#760. There are two major changes in
    this PR:
    
    1. The `dist-various-2` container, which already produces the other WASI
       targets, now has an extra target added for `wasm32-wasip2`.
    2. A new `wasm-component-ld` binary is added to all host toolchains when
       LLD is enabled. This is the linker used for the `wasm32-wasip2` target.
    
    This new linker is added for all host toolchains to ensure that all host
    toolchains can produce the `wasm32-wasip2` target. This is similar to
    how `rust-lld` was originally included for all host toolchains to be
    able to produce WebAssembly output when the targets were first added.
    The new linker is developed [here][wasm-component-ld] and is pulled in
    via a crates.io-based dependency to the tree here.
    
    [wasm-component-ld]: https://github.com/bytecodealliance/wasm-component-ld
    alexcrichton committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    2a3e22b View commit details
    Browse the repository at this point in the history
  2. Update how wasm-component-ld is built

    Reuse preexisting macro and switch it to a "bootstrap tool" to try to
    resolve build issues.
    alexcrichton committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    1afdd45 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4cd6eee View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2024

  1. Don't use stage0 compiler for wasm-component-ld

    Switch it to using a just-built standard library which enables it to be
    cross compiled. Additionally allow it access to `min_specialization`
    which `ahash`, a dependency, wants.
    alexcrichton committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    c370bf4 View commit details
    Browse the repository at this point in the history