diff --git a/src/bootstrap/step.rs b/src/bootstrap/step.rs index 4c1f58e52d960..b8683831af122 100644 --- a/src/bootstrap/step.rs +++ b/src/bootstrap/step.rs @@ -98,6 +98,13 @@ pub fn build_rules(build: &Build) -> Rules { .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)); // ========================================================================