Skip to content

Commit dc2dfba

Browse files
committed
update bootstrap comment after stage0 redesign
1 parent 430ed84 commit dc2dfba

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/bootstrap/src/core/builder/cargo.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -261,14 +261,11 @@ impl Cargo {
261261
}
262262
}
263263

264-
// When determining flags for the host (build scripts/proc macros),
265-
// we use the snapshot compiler when building `Mode::Std` tools, and
266-
// the current compiler when building anything else.
267-
// We need to determine the current stage here to pass proper linker args (e.g. -C vs -Z)
268-
// to the compiler used to compile build scripts.
264+
// We use the snapshot compiler when building host code (build scripts/proc macros) of
265+
// `Mode::Std` tools, so we need to determine the current stage here to pass the proper
266+
// linker args (e.g. -C vs -Z).
269267
// This should stay synchronized with the [cargo] function.
270268
let host_stage = if mode == Mode::Std { 0 } else { compiler.stage };
271-
272269
for arg in linker_args(builder, compiler.host, LldThreads::Yes, host_stage) {
273270
self.hostflags.arg(&arg);
274271
}

0 commit comments

Comments
 (0)