-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't cross-compile Emscripten's LLVM #48093
Conversation
Eventually the LLVM version of Emscripten and the main LLVM will diverge, and we can't cross-compile an older version of LLVM using a newer version of LLVM's `llvm-config`.
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
So just to make sure this basically means that we'll be building emscripten LLVM completely (i.e., bootstrapping it) instead of cross compiling from an existing pre-built LLVM? |
Nah it's actually a bit better than that! LLVM needs to be told that it's being cross compiled for situations like i686 -> ARM (dunno why). We were informing Emscripten that it was being cross compiled on the i686 builder when we were building from x86_64 -> i686, but this wasn't necessary. Fuctionally this PR actually changes nothing, we still build LLVM the same number of times (aka Emscripten only once). It just means that when we upgrade LLVM away from Emscripten it'll actually work :) |
Sounds good, thanks! @bors r+ |
📌 Commit 866d13a has been approved by |
@bors: rollup |
… r=Mark-Simulacrum Don't cross-compile Emscripten's LLVM Eventually the LLVM version of Emscripten and the main LLVM will diverge, and we can't cross-compile an older version of LLVM using a newer version of LLVM's `llvm-config`. This is extracted from rust-lang#47828
☔ The latest upstream changes (presumably #47828) made this pull request unmergeable. Please resolve the merge conflicts. |
#47828 (which includes this change) has been merged, closing. |
Eventually the LLVM version of Emscripten and the main LLVM will diverge, and we
can't cross-compile an older version of LLVM using a newer version of LLVM's
llvm-config
.This is extracted from #47828