diff options
| -rw-r--r-- | src/bootstrap/step.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bootstrap/step.rs b/src/bootstrap/step.rs index 4c1f58e52d9..b8683831af1 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)); // ======================================================================== |
