File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
src/bootstrap/src/core/builder Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -264,14 +264,11 @@ impl Cargo {
264264 }
265265 }
266266
267- // When determining flags for the host (build scripts/proc macros),
268- // we use the snapshot compiler when building `Mode::Std` tools, and
269- // the current compiler when building anything else.
270- // We need to determine the current stage here to pass proper linker args (e.g. -C vs -Z)
271- // to the compiler used to compile build scripts.
267+ // We use the snapshot compiler when building host code (build scripts/proc macros) of
268+ // `Mode::Std` tools, so we need to determine the current stage here to pass the proper
269+ // linker args (e.g. -C vs -Z).
272270 // This should stay synchronized with the [cargo] function.
273271 let host_stage = if mode == Mode :: Std { 0 } else { compiler. stage } ;
274-
275272 for arg in linker_args ( builder, compiler. host , LldThreads :: Yes , host_stage) {
276273 self . hostflags . arg ( & arg) ;
277274 }
You can’t perform that action at this time.
0 commit comments