6 ms·
Today Rust only has a [few patches to LLVM](https://github.com/rust-lang/llvm/tree/rust https://github.com/rust-lang/llvm/tree/rust). One is for Android stack o
by brson 10y ago
Today Rust only has a [few patches to LLVM](https://github.com/rust-lang/llvm/tree/rust https://github.com/rust-lang/llvm/tree/rust). One is for Android stack overflow detection using a mechanism that upstream isn't fond of (split stacks), the other an optimization not required for correctness.
The Android patch can be eliminated someday with stack probes (though it's not clear upstream wants those either).
Emscripten support though - at least in the short term - is going to bring in the [emscripten LLVM 'fastcomp' backend](https://github.com/kripken/emscripten-fastcomp https://github.com/kripken/emscripten-fastcomp) that translates LLVM IR to JS. This patch has no hope of being upstreamed and will impose significant maintenance burden on both Rust and Emscripten as long as its in tree. This solution should be short-lived though as we will transition to either the upstream LLVM->wasm backend or a new Rust MIR->wasm backend.
So I think the answer to your question is 'no'.
- brson 10y agoI've been told that the LLVM branch I linked to is 'the most wrong branch you possibly could have linked to'. This is the right one: https://github.com/rust-lang/llvm/tree/rust-llvm-2016-03-13 https://github.com/rust-lang/llvm/tree/rust-llvm-2016-03-13 Patches are mostly backported from upstream or optimizations.
- kibwen 10y agoTo those in this thread, note that brson is the author of this blog post, as well as the primary maintainer of rustup, and has had his eyes on a web target for Rust for some years now.