Skip to content

rustc: add wasm32v1-none target #383765

@andresilva

Description

@andresilva

Rust 1.84 includes a new target wasm32v1-none (https://doc.rust-lang.org/beta/rustc/platform-support/wasm32v1-none.html). This target could be used by some of the packages that are currently targeting wasm32-unknown-unknown, namely polkadot which I maintain (paritytech/polkadot-sdk#7008). I added the target to rustc by adding wasm32v1-none here. Unfortunately this did not work since the rustc build system will by default try to build docs for all targets, including docs for std which will fail for wasm32v1-none since it's a no-std target. To workaround this I tried building rustc with --disable-docs which worked and the wasm32v1-none worked correctly to build polkadot. Not sure how to tune the rustc build to only build docs for std targets.

cc @alyssais

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions