Closed
Description
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.