]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/tool.rs
Move add_apple_sdk out of add_pre_link_args.
[rust.git] / src / bootstrap / tool.rs
index 460dffb5c8a570a9568d82035b943c253fe6e36f..290e3744852f4d2dcbf38ff5866a56ba4ad5d9a0 100644 (file)
@@ -470,7 +470,11 @@ fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
 
     fn make_run(run: RunConfig<'_>) {
         run.builder.ensure(Rustdoc {
-            compiler: run.builder.compiler(run.builder.top_stage, run.build_triple()),
+            // Note: this is somewhat unique in that we actually want a *target*
+            // compiler here, because rustdoc *is* a compiler. We won't be using
+            // this as the compiler to build with, but rather this is "what
+            // compiler are we producing"?
+            compiler: run.builder.compiler(run.builder.top_stage, run.target),
         });
     }