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:
Alex Crichton 2016-11-28 07:13:47 -08:00
parent 0b399e5e99
commit 7506990914

View file

@ -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));
// ========================================================================