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 @@ -261,14 +261,11 @@ impl Cargo {
261
261
}
262
262
}
263
263
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).
269
267
// This should stay synchronized with the [cargo] function.
270
268
let host_stage = if mode == Mode :: Std { 0 } else { compiler. stage } ;
271
-
272
269
for arg in linker_args ( builder, compiler. host , LldThreads :: Yes , host_stage) {
273
270
self . hostflags . arg ( & arg) ;
274
271
}
You can’t perform that action at this time.
0 commit comments