Skip to content

#[link(wasm_import_module = "env")]#134

Merged
CryZe merged 1 commit into
LiveSplit:masterfrom
AlexKnauth:link-wasm_import_module-env
May 28, 2026
Merged

#[link(wasm_import_module = "env")]#134
CryZe merged 1 commit into
LiveSplit:masterfrom
AlexKnauth:link-wasm_import_module-env

Conversation

@AlexKnauth

Copy link
Copy Markdown
Collaborator

After these changes in Rust 1.96.0:

Rust has stopped passing --allow-undefined to the linker for WASM targets, causing linker errors like:

error: linking with `rust-lld` failed: exit status: 1

with undefined symbol: user_settings_add_title, undefined symbol: user_settings_add_choice, and so on through undefined symbol: user_settings_add_choice_option.

Adding #[link(wasm_import_module = "env")] should fix those linker errors.

@CryZe CryZe enabled auto-merge (squash) May 28, 2026 19:41
@CryZe CryZe merged commit 713579c into LiveSplit:master May 28, 2026
7 checks passed
@AlexKnauth AlexKnauth deleted the link-wasm_import_module-env branch May 28, 2026 20:14
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.

2 participants