Skip to content

Allow linking JS libraries just like .a #5221

Closed
@RReverser

Description

@RReverser

Would it be possible to allow JS libraries to be linked as normal objects (via -l and recognising .js extension suffix like linker already does for other extensions)?

This would help a lot, for example, to avoid teaching Rust --js-library specifically for Emscripten target - rust-lang/rust#41409 - and likely would help other tooling that can already pass objects to downstream linker via -l.

If not, that's fine, I can continue working to bring this as a separate gated feature to Rust, but decided to ask if this is something that can be considered changing on Emscripten side.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions