Skip to content

port(wasm): Support --export in Wasm - #2211

Merged
lapla-cogito merged 1 commit into
wild-linker:mainfrom
lapla-cogito:wasm_export
Jul 16, 2026
Merged

lapla-cogito merged 1 commit into
wild-linker:mainfrom
lapla-cogito:wasm_export

Conversation

@lapla-cogito

Copy link
Copy Markdown
Member

This flag is passed by rustc when building a regular Rust program for wasm32-wasi.

Part of #1431

Comment thread libwild/src/wasm.rs
let def_id = symbol_db.definition(symbol_id);
let def_file_id = symbol_db.file_id_for_symbol(def_id);

let Some(def_obj_idx) = layout_inputs

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I assume this linear search for a file will go away once the wasm code switches to using groups?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

If we later keep remaps on per-object group state instead of parallel Vecs, this would go away.

@lapla-cogito
lapla-cogito merged commit cc470f8 into wild-linker:main Jul 16, 2026
22 checks passed
@lapla-cogito
lapla-cogito deleted the wasm_export branch July 16, 2026 22:46
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