Skip to content

Fix wasm-mappings build failure on Rust 1.96+#531

Open
maxgmr wants to merge 1 commit into
mozilla:masterfrom
maxgmr:fix-wasm-import-module
Open

Fix wasm-mappings build failure on Rust 1.96+#531
maxgmr wants to merge 1 commit into
mozilla:masterfrom
maxgmr:fix-wasm-import-module

Conversation

@maxgmr

@maxgmr maxgmr commented Jul 22, 2026

Copy link
Copy Markdown

As stated in #530, wasm-mappings fails to build on Rust 1.96 or newer because they stopped passing --allow-undefined to wasm-ld by default.

This PR fixes the issue by following upstream's recommendation and explicitly linking to env. Switching to my branch, the build should work on both old and new toolchains.

Steps to reproduce

$ cd wasm-mappings/source-map-mappings-wasm-api
$ rustup update nightly
$ cargo +1.95.0 build --target wasm32-unknown-unknown
$ cargo +nightly build --target wasm32-unknown-unknown

Expected result

The build should succeed on both toolchains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant