-
Notifications
You must be signed in to change notification settings - Fork 13.3k
rustbuild: Tweak how we cross-compile LLVM #43527
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
Conversation
In preparation for upgrading to LLVM 5.0 it looks like we need to tweak how we cross compile LLVM slightly. It's using `CMAKE_SYSTEM_NAME` to infer whether to build libFuzzer which only works on some platforms, and then once we configure that it needs to apparently reach into the host build area to try to compile `llvm-config` as well. Once these are both configured, though, it looks like we can successfully cross-compile LLVM.
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
cc @TimNN |
Do we need any checks for LLVM 5.0 around the new variables? Presumably no, since they seem like they'd work either way, but it'd be good to check (CI will take care of that though). Otherwise r=me. |
Yeah I'm hoping that this is ok to land with 4.0 we've got now, but failing that CI will complain at me and we can just check this in with the final 5.0 PR. It's just kinda cool if the 5.0 PR is literally just updating the submodule :) @bors: r=Mark-Simulacrum |
📌 Commit 069a1b3 has been approved by |
…lacrum rustbuild: Tweak how we cross-compile LLVM In preparation for upgrading to LLVM 5.0 it looks like we need to tweak how we cross compile LLVM slightly. It's using `CMAKE_SYSTEM_NAME` to infer whether to build libFuzzer which only works on some platforms, and then once we configure that it needs to apparently reach into the host build area to try to compile `llvm-config` as well. Once these are both configured, though, it looks like we can successfully cross-compile LLVM.
☀️ Test successful - status-appveyor, status-travis |
In preparation for upgrading to LLVM 5.0 it looks like we need to tweak how we
cross compile LLVM slightly. It's using
CMAKE_SYSTEM_NAME
to infer whether tobuild libFuzzer which only works on some platforms, and then once we configure
that it needs to apparently reach into the host build area to try to compile
llvm-config
as well. Once these are both configured, though, it looks like wecan successfully cross-compile LLVM.