mirror of
https://github.com/rust-lang/rust
synced 2024-10-06 16:51:35 +00:00
rustbuild: Cross-compiled LLVM depens on host
We use the host's tblgen so we need to be sure to always build the host first. Closes #38037
This commit is contained in:
parent
0b399e5e99
commit
7506990914
|
@ -98,6 +98,13 @@ fn dummy<'a>(s: &Step<'a>, build: &'a Build) -> Step<'a> {
|
|||
.run(move |s| compile::assemble_rustc(build, s.stage, s.target));
|
||||
rules.build("llvm", "src/llvm")
|
||||
.host(true)
|
||||
.dep(move |s| {
|
||||
if s.target == build.config.build {
|
||||
dummy(s, build)
|
||||
} else {
|
||||
s.target(&build.config.build)
|
||||
}
|
||||
})
|
||||
.run(move |s| native::llvm(build, s.target));
|
||||
|
||||
// ========================================================================
|
||||
|
|
Loading…
Reference in a new issue