Skip to content

Commit 2f8fd53

Browse files
committed
Auto merge of #38050 - alexcrichton:fix-llvm-deps, r=japaric
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
2 parents af0a071 + 7506990 commit 2f8fd53

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/bootstrap/step.rs

+7
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ pub fn build_rules(build: &Build) -> Rules {
9898
.run(move |s| compile::assemble_rustc(build, s.stage, s.target));
9999
rules.build("llvm", "src/llvm")
100100
.host(true)
101+
.dep(move |s| {
102+
if s.target == build.config.build {
103+
dummy(s, build)
104+
} else {
105+
s.target(&build.config.build)
106+
}
107+
})
101108
.run(move |s| native::llvm(build, s.target));
102109

103110
// ========================================================================

0 commit comments

Comments
 (0)