3 ms·
LLVM is (at least currently) being dynamically linked to allow shipping multiple copies of LLVM (one for emscripten, one for everything else) without having to
by est31 7y ago
LLVM is (at least currently) being dynamically linked to allow shipping multiple copies of LLVM (one for emscripten, one for everything else) without having to ship multiple entire compilers. Now that emscripten uses LLVM's built in wasm backend it's not needed any more, but currently support is still in the compiler. This is a PR to remove it: https://github.com/rust-lang/rust/pull/65703 https://github.com/rust-lang/rust/pull/65703
- mmastrac 7y agoI wonder if Bitcode support in Rust will result in this dynamic linking being required again.
- est31 7y agoI've been wondering about the same actually. bitcode likely needs swift's LLVM or another apple provided LLVM fork and you'd probably want to link dynamically. I guess they are not intending to offer compilation to bitcode any time soon.