Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 216d3a1

Browse files
authoredJun 12, 2025··
Unrolled build for #142303
Rollup merge of #142303 - Kobzol:bootstrap-cleanup-1, r=jieyouxu Assorted bootstrap cleanups (step 1) Now that the stage0 redesign has landed, we can finally start cleaning up many things in bootstrap, and lord knows it deserves it! I plan to send many PRs once I figure out an incremental way forward, this is the first one of them. It doesn't actually change anything, just renames stuff and adds more documentation, but the rename is bitrotty, so I wanted to push the PR eagerly. r? `@jieyouxu`
2 parents 1434630 + 20e8325 commit 216d3a1

File tree

31 files changed

+381
-353
lines changed

31 files changed

+381
-353
lines changed
 

‎src/bootstrap/src/core/build_steps/check.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ impl Step for Std {
8989
let stage = self.custom_stage.unwrap_or(builder.top_stage);
9090

9191
let target = self.target;
92-
let compiler = builder.compiler(stage, builder.config.build);
92+
let compiler = builder.compiler(stage, builder.config.host_target);
9393

9494
if stage == 0 {
9595
let mut is_explicitly_called =
@@ -244,7 +244,7 @@ impl Step for Rustc {
244244
/// the `compiler` targeting the `target` architecture. The artifacts
245245
/// created will also be linked into the sysroot directory.
246246
fn run(self, builder: &Builder<'_>) {
247-
let compiler = builder.compiler(builder.top_stage, builder.config.build);
247+
let compiler = builder.compiler(builder.top_stage, builder.config.host_target);
248248
let target = self.target;
249249

250250
if compiler.stage != 0 {
@@ -327,7 +327,7 @@ impl Step for CodegenBackend {
327327
return;
328328
}
329329

330-
let compiler = builder.compiler(builder.top_stage, builder.config.build);
330+
let compiler = builder.compiler(builder.top_stage, builder.config.host_target);
331331
let target = self.target;
332332
let backend = self.backend;
333333

@@ -382,7 +382,7 @@ impl Step for RustAnalyzer {
382382
}
383383

384384
fn run(self, builder: &Builder<'_>) {
385-
let compiler = builder.compiler(builder.top_stage, builder.config.build);
385+
let compiler = builder.compiler(builder.top_stage, builder.config.host_target);
386386
let target = self.target;
387387

388388
builder.ensure(Rustc::new(target, builder));
@@ -448,7 +448,7 @@ impl Step for Compiletest {
448448

449449
let compiler = builder.compiler(
450450
if mode == Mode::ToolBootstrap { 0 } else { builder.top_stage },
451-
builder.config.build,
451+
builder.config.host_target,
452452
);
453453

454454
if mode != Mode::ToolBootstrap {
@@ -527,7 +527,7 @@ fn run_tool_check_step(
527527
path: &str,
528528
) {
529529
let display_name = path.rsplit('/').next().unwrap();
530-
let compiler = builder.compiler(builder.top_stage, builder.config.build);
530+
let compiler = builder.compiler(builder.top_stage, builder.config.host_target);
531531

532532
builder.ensure(Rustc::new(target, builder));
533533

@@ -614,7 +614,7 @@ impl Step for CoverageDump {
614614
// Make sure we haven't forgotten any fields, if there are any.
615615
let Self {} = self;
616616
let display_name = "coverage-dump";
617-
let host = builder.config.build;
617+
let host = builder.config.host_target;
618618
let target = host;
619619
let mode = Mode::ToolBootstrap;
620620

‎src/bootstrap/src/core/build_steps/clippy.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl Step for Std {
144144
builder.require_submodule("library/stdarch", None);
145145

146146
let target = self.target;
147-
let compiler = builder.compiler(builder.top_stage, builder.config.build);
147+
let compiler = builder.compiler(builder.top_stage, builder.config.host_target);
148148

149149
let mut cargo = builder::Cargo::new(
150150
builder,
@@ -204,7 +204,7 @@ impl Step for Rustc {
204204
/// This will lint the compiler for a particular stage of the build using
205205
/// the `compiler` targeting the `target` architecture.
206206
fn run(self, builder: &Builder<'_>) {
207-
let compiler = builder.compiler(builder.top_stage, builder.config.build);
207+
let compiler = builder.compiler(builder.top_stage, builder.config.host_target);
208208
let target = self.target;
209209

210210
if !builder.download_rustc() {
@@ -285,7 +285,7 @@ macro_rules! lint_any {
285285
}
286286

287287
fn run(self, builder: &Builder<'_>) -> Self::Output {
288-
let compiler = builder.compiler(builder.top_stage, builder.config.build);
288+
let compiler = builder.compiler(builder.top_stage, builder.config.host_target);
289289
let target = self.target;
290290

291291
if !builder.download_rustc() {

‎src/bootstrap/src/core/build_steps/compile.rs

Lines changed: 68 additions & 51 deletions
Large diffs are not rendered by default.

‎src/bootstrap/src/core/build_steps/dist.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ impl Step for Rustc {
422422
}
423423

424424
let ra_proc_macro_srv_compiler =
425-
builder.compiler_for(compiler.stage, builder.config.build, compiler.host);
425+
builder.compiler_for(compiler.stage, builder.config.host_target, compiler.host);
426426
builder.ensure(compile::Rustc::new(ra_proc_macro_srv_compiler, compiler.host));
427427

428428
if let Some(ra_proc_macro_srv) = builder.ensure_if_default(
@@ -696,7 +696,7 @@ impl Step for Std {
696696
run.builder.ensure(Std {
697697
compiler: run.builder.compiler_for(
698698
run.builder.top_stage,
699-
run.builder.config.build,
699+
run.builder.config.host_target,
700700
run.target,
701701
),
702702
target: run.target,
@@ -748,7 +748,7 @@ impl Step for RustcDev {
748748
run.builder.ensure(RustcDev {
749749
compiler: run.builder.compiler_for(
750750
run.builder.top_stage,
751-
run.builder.config.build,
751+
run.builder.config.host_target,
752752
run.target,
753753
),
754754
target: run.target,
@@ -815,7 +815,7 @@ impl Step for Analysis {
815815
// through the sysroot uplifting.
816816
compiler: run.builder.compiler_for(
817817
run.builder.top_stage,
818-
run.builder.config.build,
818+
run.builder.config.host_target,
819819
run.target,
820820
),
821821
target: run.target,
@@ -1168,7 +1168,7 @@ impl Step for Cargo {
11681168
run.builder.ensure(Cargo {
11691169
compiler: run.builder.compiler_for(
11701170
run.builder.top_stage,
1171-
run.builder.config.build,
1171+
run.builder.config.host_target,
11721172
run.target,
11731173
),
11741174
target: run.target,
@@ -1224,7 +1224,7 @@ impl Step for RustAnalyzer {
12241224
run.builder.ensure(RustAnalyzer {
12251225
compiler: run.builder.compiler_for(
12261226
run.builder.top_stage,
1227-
run.builder.config.build,
1227+
run.builder.config.host_target,
12281228
run.target,
12291229
),
12301230
target: run.target,
@@ -1268,7 +1268,7 @@ impl Step for Clippy {
12681268
run.builder.ensure(Clippy {
12691269
compiler: run.builder.compiler_for(
12701270
run.builder.top_stage,
1271-
run.builder.config.build,
1271+
run.builder.config.host_target,
12721272
run.target,
12731273
),
12741274
target: run.target,
@@ -1317,7 +1317,7 @@ impl Step for Miri {
13171317
run.builder.ensure(Miri {
13181318
compiler: run.builder.compiler_for(
13191319
run.builder.top_stage,
1320-
run.builder.config.build,
1320+
run.builder.config.host_target,
13211321
run.target,
13221322
),
13231323
target: run.target,
@@ -1462,7 +1462,7 @@ impl Step for Rustfmt {
14621462
run.builder.ensure(Rustfmt {
14631463
compiler: run.builder.compiler_for(
14641464
run.builder.top_stage,
1465-
run.builder.config.build,
1465+
run.builder.config.host_target,
14661466
run.target,
14671467
),
14681468
target: run.target,
@@ -1507,7 +1507,7 @@ impl Step for Extended {
15071507
fn make_run(run: RunConfig<'_>) {
15081508
run.builder.ensure(Extended {
15091509
stage: run.builder.top_stage,
1510-
host: run.builder.config.build,
1510+
host: run.builder.config.host_target,
15111511
target: run.target,
15121512
});
15131513
}
@@ -2157,7 +2157,7 @@ fn maybe_install_llvm(
21572157
cmd.arg("--libfiles");
21582158
builder.verbose(|| println!("running {cmd:?}"));
21592159
let files = cmd.run_capture_stdout(builder).stdout();
2160-
let build_llvm_out = &builder.llvm_out(builder.config.build);
2160+
let build_llvm_out = &builder.llvm_out(builder.config.host_target);
21612161
let target_llvm_out = &builder.llvm_out(target);
21622162
for file in files.trim_end().split(' ') {
21632163
// If we're not using a custom LLVM, make sure we package for the target.
@@ -2341,7 +2341,7 @@ impl Step for LlvmBitcodeLinker {
23412341
run.builder.ensure(LlvmBitcodeLinker {
23422342
compiler: run.builder.compiler_for(
23432343
run.builder.top_stage,
2344-
run.builder.config.build,
2344+
run.builder.config.host_target,
23452345
run.target,
23462346
),
23472347
target: run.target,

‎src/bootstrap/src/core/build_steps/doc.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ impl Step for TheBook {
209209

210210
fn make_run(run: RunConfig<'_>) {
211211
run.builder.ensure(TheBook {
212-
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.build),
212+
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.host_target),
213213
target: run.target,
214214
});
215215
}
@@ -329,7 +329,7 @@ impl Step for Standalone {
329329

330330
fn make_run(run: RunConfig<'_>) {
331331
run.builder.ensure(Standalone {
332-
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.build),
332+
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.host_target),
333333
target: run.target,
334334
});
335335
}
@@ -431,7 +431,7 @@ impl Step for Releases {
431431

432432
fn make_run(run: RunConfig<'_>) {
433433
run.builder.ensure(Releases {
434-
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.build),
434+
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.host_target),
435435
target: run.target,
436436
});
437437
}
@@ -449,7 +449,7 @@ impl Step for Releases {
449449
t!(fs::create_dir_all(&out));
450450

451451
builder.ensure(Standalone {
452-
compiler: builder.compiler(builder.top_stage, builder.config.build),
452+
compiler: builder.compiler(builder.top_stage, builder.config.host_target),
453453
target,
454454
});
455455

@@ -700,7 +700,7 @@ fn doc_std(
700700
extra_args: &[&str],
701701
requested_crates: &[String],
702702
) {
703-
let compiler = builder.compiler(stage, builder.config.build);
703+
let compiler = builder.compiler(stage, builder.config.host_target);
704704

705705
let target_doc_dir_name = if format == DocumentationFormat::Json { "json-doc" } else { "doc" };
706706
let target_dir = builder.stage_out(compiler, Mode::Std).join(target).join(target_doc_dir_name);
@@ -803,8 +803,8 @@ impl Step for Rustc {
803803

804804
// Build the standard library, so that proc-macros can use it.
805805
// (Normally, only the metadata would be necessary, but proc-macros are special since they run at compile-time.)
806-
let compiler = builder.compiler(stage, builder.config.build);
807-
builder.ensure(compile::Std::new(compiler, builder.config.build));
806+
let compiler = builder.compiler(stage, builder.config.host_target);
807+
builder.ensure(compile::Std::new(compiler, builder.config.host_target));
808808

809809
let _guard = builder.msg_sysroot_tool(
810810
Kind::Doc,
@@ -946,7 +946,7 @@ macro_rules! tool_doc {
946946
let out = builder.compiler_doc_out(target);
947947
t!(fs::create_dir_all(&out));
948948

949-
let compiler = builder.compiler(stage, builder.config.build);
949+
let compiler = builder.compiler(stage, builder.config.host_target);
950950
builder.ensure(compile::Std::new(compiler, target));
951951

952952
if true $(&& $rustc_tool)? {
@@ -1174,7 +1174,7 @@ impl Step for RustcBook {
11741174

11751175
fn make_run(run: RunConfig<'_>) {
11761176
run.builder.ensure(RustcBook {
1177-
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.build),
1177+
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.host_target),
11781178
target: run.target,
11791179
validate: false,
11801180
});
@@ -1261,7 +1261,7 @@ impl Step for Reference {
12611261

12621262
fn make_run(run: RunConfig<'_>) {
12631263
run.builder.ensure(Reference {
1264-
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.build),
1264+
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.host_target),
12651265
target: run.target,
12661266
});
12671267
}
@@ -1272,7 +1272,7 @@ impl Step for Reference {
12721272

12731273
// This is needed for generating links to the standard library using
12741274
// the mdbook-spec plugin.
1275-
builder.ensure(compile::Std::new(self.compiler, builder.config.build));
1275+
builder.ensure(compile::Std::new(self.compiler, builder.config.host_target));
12761276

12771277
// Run rustbook/mdbook to generate the HTML pages.
12781278
builder.ensure(RustbookSrc {

‎src/bootstrap/src/core/build_steps/gcc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ pub fn add_cg_gcc_cargo_flags(cargo: &mut Cargo, gcc: &GccOutput) {
285285
/// The absolute path to the downloaded GCC artifacts.
286286
#[cfg(not(test))]
287287
fn ci_gcc_root(config: &crate::Config) -> PathBuf {
288-
config.out.join(config.build).join("ci-gcc")
288+
config.out.join(config.host_target).join("ci-gcc")
289289
}
290290

291291
/// Detect whether GCC sources have been modified locally or not.

‎src/bootstrap/src/core/build_steps/install.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ fn install_sh(
7373
let prefix = default_path(&builder.config.prefix, "/usr/local");
7474
let sysconfdir = prefix.join(default_path(&builder.config.sysconfdir, "/etc"));
7575
let destdir_env = env::var_os("DESTDIR").map(PathBuf::from);
76-
let is_cygwin = builder.config.build.is_cygwin();
76+
let is_cygwin = builder.config.host_target.is_cygwin();
7777

7878
// Sanity checks on the write access of user.
7979
//
@@ -187,7 +187,7 @@ macro_rules! install {
187187

188188
fn make_run(run: RunConfig<'_>) {
189189
run.builder.ensure($name {
190-
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.build),
190+
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.host_target),
191191
target: run.target,
192192
});
193193
}
@@ -246,7 +246,7 @@ install!((self, builder, _config),
246246
);
247247
}
248248
};
249-
LlvmTools, alias = "llvm-tools", _config.llvm_tools_enabled && _config.llvm_enabled(_config.build), only_hosts: true, {
249+
LlvmTools, alias = "llvm-tools", _config.llvm_tools_enabled && _config.llvm_enabled(_config.host_target), only_hosts: true, {
250250
if let Some(tarball) = builder.ensure(dist::LlvmTools { target: self.target }) {
251251
install_sh(builder, "llvm-tools", self.compiler.stage, Some(self.target), &tarball);
252252
} else {

‎src/bootstrap/src/core/build_steps/llvm.rs

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,14 @@ pub fn prebuilt_llvm_config(
132132
let build_llvm_config = if let Some(build_llvm_config) = builder
133133
.config
134134
.target_config
135-
.get(&builder.config.build)
135+
.get(&builder.config.host_target)
136136
.and_then(|config| config.llvm_config.clone())
137137
{
138138
build_llvm_config
139139
} else {
140-
let mut llvm_config_ret_dir = builder.llvm_out(builder.config.build);
140+
let mut llvm_config_ret_dir = builder.llvm_out(builder.config.host_target);
141141
llvm_config_ret_dir.push("bin");
142-
llvm_config_ret_dir.join(exe("llvm-config", builder.config.build))
142+
llvm_config_ret_dir.join(exe("llvm-config", builder.config.host_target))
143143
};
144144

145145
let llvm_cmake_dir = out_dir.join("lib/cmake/llvm");
@@ -235,8 +235,8 @@ pub(crate) fn is_ci_llvm_available_for_target(config: &Config, asserts: bool) ->
235235
("x86_64-unknown-netbsd", false),
236236
];
237237

238-
if !supported_platforms.contains(&(&*config.build.triple, asserts))
239-
&& (asserts || !supported_platforms.contains(&(&*config.build.triple, true)))
238+
if !supported_platforms.contains(&(&*config.host_target.triple, asserts))
239+
&& (asserts || !supported_platforms.contains(&(&*config.host_target.triple, true)))
240240
{
241241
return false;
242242
}
@@ -480,7 +480,7 @@ impl Step for Llvm {
480480
// https://llvm.org/docs/HowToCrossCompileLLVM.html
481481
if !builder.config.is_host_target(target) {
482482
let LlvmResult { llvm_config, .. } =
483-
builder.ensure(Llvm { target: builder.config.build });
483+
builder.ensure(Llvm { target: builder.config.host_target });
484484
if !builder.config.dry_run() {
485485
let llvm_bindir =
486486
command(&llvm_config).arg("--bindir").run_capture_stdout(builder).stdout();
@@ -494,7 +494,8 @@ impl Step for Llvm {
494494
}
495495
cfg.define("LLVM_CONFIG_PATH", llvm_config);
496496
if builder.config.llvm_clang {
497-
let build_bin = builder.llvm_out(builder.config.build).join("build").join("bin");
497+
let build_bin =
498+
builder.llvm_out(builder.config.host_target).join("build").join("bin");
498499
let clang_tblgen = build_bin.join("clang-tblgen").with_extension(EXE_EXTENSION);
499500
if !builder.config.dry_run() && !clang_tblgen.exists() {
500501
panic!("unable to find {}", clang_tblgen.display());
@@ -628,7 +629,7 @@ fn configure_cmake(
628629
if builder.ninja() {
629630
cfg.generator("Ninja");
630631
}
631-
cfg.target(&target.triple).host(&builder.config.build.triple);
632+
cfg.target(&target.triple).host(&builder.config.host_target.triple);
632633

633634
if !builder.config.is_host_target(target) {
634635
cfg.define("CMAKE_CROSSCOMPILING", "True");
@@ -813,7 +814,7 @@ fn configure_cmake(
813814
ldflags.push_all(flags);
814815
}
815816

816-
if let Some(flags) = get_var("LDFLAGS", &builder.config.build.triple, &target.triple) {
817+
if let Some(flags) = get_var("LDFLAGS", &builder.config.host_target.triple, &target.triple) {
817818
ldflags.push_all(&flags);
818819
}
819820

@@ -1135,7 +1136,8 @@ impl Step for Sanitizers {
11351136
return runtimes;
11361137
}
11371138

1138-
let LlvmResult { llvm_config, .. } = builder.ensure(Llvm { target: builder.config.build });
1139+
let LlvmResult { llvm_config, .. } =
1140+
builder.ensure(Llvm { target: builder.config.host_target });
11391141

11401142
static STAMP_HASH_MEMO: OnceLock<String> = OnceLock::new();
11411143
let smart_stamp_hash = STAMP_HASH_MEMO.get_or_init(|| {
@@ -1345,7 +1347,7 @@ impl Step for CrtBeginEnd {
13451347
cfg.cargo_metadata(false)
13461348
.out_dir(&out_dir)
13471349
.target(&self.target.triple)
1348-
.host(&builder.config.build.triple)
1350+
.host(&builder.config.host_target.triple)
13491351
.warnings(false)
13501352
.debug(false)
13511353
.opt_level(3)
@@ -1424,7 +1426,7 @@ impl Step for Libunwind {
14241426
cfg.archiver(ar);
14251427
}
14261428
cfg.target(&self.target.triple);
1427-
cfg.host(&builder.config.build.triple);
1429+
cfg.host(&builder.config.host_target.triple);
14281430
cfg.warnings(false);
14291431
cfg.debug(false);
14301432
// get_compiler() need set opt_level first.

‎src/bootstrap/src/core/build_steps/perf.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ impl Display for Scenario {
136136
/// Performs profiling using `rustc-perf` on a built version of the compiler.
137137
pub fn perf(builder: &Builder<'_>, args: &PerfArgs) {
138138
let collector = builder.ensure(RustcPerf {
139-
compiler: builder.compiler(0, builder.config.build),
140-
target: builder.config.build,
139+
compiler: builder.compiler(0, builder.config.host_target),
140+
target: builder.config.host_target,
141141
});
142142

143143
let is_profiling = match &args.cmd {
@@ -151,8 +151,8 @@ pub fn perf(builder: &Builder<'_>, args: &PerfArgs) {
151151
Consider setting `rust.debuginfo-level = 1` in `bootstrap.toml`."#);
152152
}
153153

154-
let compiler = builder.compiler(builder.top_stage, builder.config.build);
155-
builder.ensure(Std::new(compiler, builder.config.build));
154+
let compiler = builder.compiler(builder.top_stage, builder.config.host_target);
155+
builder.ensure(Std::new(compiler, builder.config.host_target));
156156

157157
if let Some(opts) = args.cmd.shared_opts()
158158
&& opts.profiles.contains(&Profile::Doc)

‎src/bootstrap/src/core/build_steps/run.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ impl Step for Miri {
116116
}
117117

118118
fn run(self, builder: &Builder<'_>) {
119-
let host = builder.build.build;
119+
let host = builder.build.host_target;
120120
let target = self.target;
121121

122122
// `x run` uses stage 0 by default but miri does not work well with stage 0.
@@ -448,7 +448,7 @@ impl Step for Rustfmt {
448448
}
449449

450450
fn run(self, builder: &Builder<'_>) {
451-
let host = builder.build.build;
451+
let host = builder.build.host_target;
452452

453453
// `x run` uses stage 0 by default but rustfmt does not work well with stage 0.
454454
// Change the stage to 1 if it's not set explicitly.

‎src/bootstrap/src/core/build_steps/setup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ impl Step for Link {
260260
}
261261

262262
let stage_path =
263-
["build", config.build.rustc_target_arg(), "stage1"].join(MAIN_SEPARATOR_STR);
263+
["build", config.host_target.rustc_target_arg(), "stage1"].join(MAIN_SEPARATOR_STR);
264264

265265
if stage_dir_exists(&stage_path[..]) && !config.dry_run() {
266266
attempt_toolchain_link(builder, &stage_path[..]);

‎src/bootstrap/src/core/build_steps/test.rs

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ impl Step for CrateBootstrap {
7070
}
7171

7272
fn run(self, builder: &Builder<'_>) {
73-
let bootstrap_host = builder.config.build;
73+
let bootstrap_host = builder.config.host_target;
7474
let compiler = builder.compiler(0, bootstrap_host);
7575
let mut path = self.path.to_str().unwrap();
7676

@@ -128,7 +128,7 @@ You can skip linkcheck with --skip src/tools/linkchecker"
128128
builder.info(&format!("Linkcheck ({host})"));
129129

130130
// Test the linkchecker itself.
131-
let bootstrap_host = builder.config.build;
131+
let bootstrap_host = builder.config.host_target;
132132
let compiler = builder.compiler(0, bootstrap_host);
133133

134134
let cargo = tool::prepare_tool_cargo(
@@ -525,7 +525,7 @@ impl Step for Miri {
525525

526526
/// Runs `cargo test` for miri.
527527
fn run(self, builder: &Builder<'_>) {
528-
let host = builder.build.build;
528+
let host = builder.build.host_target;
529529
let target = self.target;
530530
let stage = builder.top_stage;
531531
if stage == 0 {
@@ -637,7 +637,7 @@ impl Step for CargoMiri {
637637

638638
/// Tests `cargo miri test`.
639639
fn run(self, builder: &Builder<'_>) {
640-
let host = builder.build.build;
640+
let host = builder.build.host_target;
641641
let target = self.target;
642642
let stage = builder.top_stage;
643643
if stage == 0 {
@@ -915,7 +915,7 @@ impl Step for RustdocJSStd {
915915
Kind::Test,
916916
builder.top_stage,
917917
"rustdoc-js-std",
918-
builder.config.build,
918+
builder.config.host_target,
919919
self.target,
920920
);
921921
command.run(builder);
@@ -1607,7 +1607,7 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
16071607
// At stage 0 (stage - 1) we are using the stage0 compiler. Using `self.target` can lead
16081608
// finding an incorrect compiler path on cross-targets, as the stage 0 is always equal to
16091609
// `build.build` in the configuration.
1610-
let build = builder.build.build;
1610+
let build = builder.build.host_target;
16111611
compiler = builder.compiler(compiler.stage - 1, build);
16121612
let test_stage = compiler.stage + 1;
16131613
(test_stage, format!("stage{test_stage}-{build}"))
@@ -1729,7 +1729,7 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
17291729
cmd.arg("--mode").arg(mode);
17301730
cmd.arg("--target").arg(target.rustc_target_arg());
17311731
cmd.arg("--host").arg(&*compiler.host.triple);
1732-
cmd.arg("--llvm-filecheck").arg(builder.llvm_filecheck(builder.config.build));
1732+
cmd.arg("--llvm-filecheck").arg(builder.llvm_filecheck(builder.config.host_target));
17331733

17341734
if builder.build.config.llvm_enzyme {
17351735
cmd.arg("--has-enzyme");
@@ -1900,7 +1900,7 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
19001900
let mut copts_passed = false;
19011901
if builder.config.llvm_enabled(compiler.host) {
19021902
let llvm::LlvmResult { llvm_config, .. } =
1903-
builder.ensure(llvm::Llvm { target: builder.config.build });
1903+
builder.ensure(llvm::Llvm { target: builder.config.host_target });
19041904
if !builder.config.dry_run() {
19051905
let llvm_version = get_llvm_version(builder, &llvm_config);
19061906
let llvm_components =
@@ -1947,7 +1947,7 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
19471947
// If LLD is available, add it to the PATH
19481948
if builder.config.lld_enabled {
19491949
let lld_install_root =
1950-
builder.ensure(llvm::Lld { target: builder.config.build });
1950+
builder.ensure(llvm::Lld { target: builder.config.host_target });
19511951

19521952
let lld_bin_path = lld_install_root.join("bin");
19531953

@@ -2202,7 +2202,7 @@ impl BookTest {
22022202
let mut lib_paths = vec![];
22032203
for dep in self.dependencies {
22042204
let mode = Mode::ToolRustc;
2205-
let target = builder.config.build;
2205+
let target = builder.config.host_target;
22062206
let cargo = tool::prepare_tool_cargo(
22072207
builder,
22082208
compiler,
@@ -2384,7 +2384,7 @@ impl Step for ErrorIndex {
23842384
// error_index_generator depends on librustdoc. Use the compiler that
23852385
// is normally used to build rustdoc for other tests (like compiletest
23862386
// tests in tests/rustdoc) so that it shares the same artifacts.
2387-
let compiler = run.builder.compiler(run.builder.top_stage, run.builder.config.build);
2387+
let compiler = run.builder.compiler(run.builder.top_stage, run.builder.config.host_target);
23882388
run.builder.ensure(ErrorIndex { compiler });
23892389
}
23902390

@@ -2983,7 +2983,7 @@ impl Step for Distcheck {
29832983
.arg("--enable-vendor")
29842984
.current_dir(&dir)
29852985
.run(builder);
2986-
command(helpers::make(&builder.config.build.triple))
2986+
command(helpers::make(&builder.config.host_target.triple))
29872987
.arg("check")
29882988
.current_dir(&dir)
29892989
.run(builder);
@@ -3024,7 +3024,7 @@ impl Step for Bootstrap {
30243024

30253025
/// Tests the build system itself.
30263026
fn run(self, builder: &Builder<'_>) {
3027-
let host = builder.config.build;
3027+
let host = builder.config.host_target;
30283028
let compiler = builder.compiler(0, host);
30293029
let _guard = builder.msg(Kind::Test, 0, "bootstrap", host, host);
30303030

@@ -3035,7 +3035,7 @@ impl Step for Bootstrap {
30353035
check_bootstrap
30363036
.args(["-m", "unittest", "bootstrap_test.py"])
30373037
.env("BUILD_DIR", &builder.out)
3038-
.env("BUILD_PLATFORM", builder.build.build.triple)
3038+
.env("BUILD_PLATFORM", builder.build.host_target.triple)
30393039
.env("BOOTSTRAP_TEST_RUSTC_BIN", &builder.initial_rustc)
30403040
.env("BOOTSTRAP_TEST_CARGO_BIN", &builder.initial_cargo)
30413041
.current_dir(builder.src.join("src/bootstrap/"));
@@ -3090,8 +3090,11 @@ impl Step for TierCheck {
30903090
}
30913091

30923092
fn make_run(run: RunConfig<'_>) {
3093-
let compiler =
3094-
run.builder.compiler_for(run.builder.top_stage, run.builder.build.build, run.target);
3093+
let compiler = run.builder.compiler_for(
3094+
run.builder.top_stage,
3095+
run.builder.build.host_target,
3096+
run.target,
3097+
);
30953098
run.builder.ensure(TierCheck { compiler });
30963099
}
30973100

@@ -3142,7 +3145,7 @@ impl Step for LintDocs {
31423145

31433146
fn make_run(run: RunConfig<'_>) {
31443147
run.builder.ensure(LintDocs {
3145-
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.build),
3148+
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.host_target),
31463149
target: run.target,
31473150
});
31483151
}
@@ -3168,7 +3171,7 @@ impl Step for RustInstaller {
31683171

31693172
/// Ensure the version placeholder replacement tool builds
31703173
fn run(self, builder: &Builder<'_>) {
3171-
let bootstrap_host = builder.config.build;
3174+
let bootstrap_host = builder.config.host_target;
31723175
let compiler = builder.compiler(0, bootstrap_host);
31733176
let cargo = tool::prepare_tool_cargo(
31743177
builder,
@@ -3270,7 +3273,7 @@ impl Step for TestHelpers {
32703273
cfg.cargo_metadata(false)
32713274
.out_dir(&dst)
32723275
.target(&target.triple)
3273-
.host(&builder.config.build.triple)
3276+
.host(&builder.config.host_target.triple)
32743277
.opt_level(0)
32753278
.warnings(false)
32763279
.debug(false)
@@ -3560,7 +3563,7 @@ impl Step for TestFloatParse {
35603563
}
35613564

35623565
fn run(self, builder: &Builder<'_>) {
3563-
let bootstrap_host = builder.config.build;
3566+
let bootstrap_host = builder.config.host_target;
35643567
let compiler = builder.compiler(builder.top_stage, bootstrap_host);
35653568
let path = self.path.to_str().unwrap();
35663569
let crate_name = self.path.iter().next_back().unwrap().to_str().unwrap();

‎src/bootstrap/src/core/build_steps/tool.rs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -341,14 +341,14 @@ pub(crate) fn get_tool_rustc_compiler(
341341

342342
if builder.download_rustc() && target_compiler.stage == 1 {
343343
// We shouldn't drop to stage0 compiler when using CI rustc.
344-
return builder.compiler(1, builder.config.build);
344+
return builder.compiler(1, builder.config.host_target);
345345
}
346346

347347
// Similar to `compile::Assemble`, build with the previous stage's compiler. Otherwise
348348
// we'd have stageN/bin/rustc and stageN/bin/$rustc_tool be effectively different stage
349349
// compilers, which isn't what we want. Rustc tools should be linked in the same way as the
350350
// compiler it's paired with, so it must be built with the previous stage compiler.
351-
builder.compiler(target_compiler.stage.saturating_sub(1), builder.config.build)
351+
builder.compiler(target_compiler.stage.saturating_sub(1), builder.config.host_target)
352352
}
353353

354354
/// Links a built tool binary with the given `name` from the build directory to the
@@ -389,8 +389,8 @@ macro_rules! bootstrap_tool {
389389
match tool {
390390
$(Tool::$name =>
391391
self.ensure($name {
392-
compiler: self.compiler(0, self.config.build),
393-
target: self.config.build,
392+
compiler: self.compiler(0, self.config.host_target),
393+
target: self.config.host_target,
394394
}).tool_path,
395395
)+
396396
}
@@ -414,7 +414,7 @@ macro_rules! bootstrap_tool {
414414
fn make_run(run: RunConfig<'_>) {
415415
run.builder.ensure($name {
416416
// snapshot compiler
417-
compiler: run.builder.compiler(0, run.builder.config.build),
417+
compiler: run.builder.compiler(0, run.builder.config.host_target),
418418
target: run.target,
419419
});
420420
}
@@ -531,7 +531,7 @@ impl Step for RustcPerf {
531531

532532
fn make_run(run: RunConfig<'_>) {
533533
run.builder.ensure(RustcPerf {
534-
compiler: run.builder.compiler(0, run.builder.config.build),
534+
compiler: run.builder.compiler(0, run.builder.config.host_target),
535535
target: run.target,
536536
});
537537
}
@@ -572,7 +572,7 @@ impl ErrorIndex {
572572
pub fn command(builder: &Builder<'_>) -> BootstrapCommand {
573573
// Error-index-generator links with the rustdoc library, so we need to add `rustc_lib_paths`
574574
// for rustc_private and libLLVM.so, and `sysroot_lib` for libstd, etc.
575-
let host = builder.config.build;
575+
let host = builder.config.host_target;
576576
let compiler = builder.compiler_for(builder.top_stage, host, host);
577577
let mut cmd = command(builder.ensure(ErrorIndex { compiler }).tool_path);
578578
let mut dylib_paths = builder.rustc_lib_paths(compiler);
@@ -595,7 +595,7 @@ impl Step for ErrorIndex {
595595
// src/tools/error-index-generator` which almost nobody does.
596596
// Normally, `x.py test` or `x.py doc` will use the
597597
// `ErrorIndex::command` function instead.
598-
let compiler = run.builder.compiler(run.builder.top_stage, run.builder.config.build);
598+
let compiler = run.builder.compiler(run.builder.top_stage, run.builder.config.host_target);
599599
run.builder.ensure(ErrorIndex { compiler });
600600
}
601601

@@ -630,7 +630,7 @@ impl Step for RemoteTestServer {
630630

631631
fn make_run(run: RunConfig<'_>) {
632632
run.builder.ensure(RemoteTestServer {
633-
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.build),
633+
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.host_target),
634634
target: run.target,
635635
});
636636
}
@@ -787,7 +787,7 @@ impl Step for Cargo {
787787

788788
fn make_run(run: RunConfig<'_>) {
789789
run.builder.ensure(Cargo {
790-
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.build),
790+
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.host_target),
791791
target: run.target,
792792
});
793793
}
@@ -905,7 +905,7 @@ impl Step for RustAnalyzer {
905905

906906
fn make_run(run: RunConfig<'_>) {
907907
run.builder.ensure(RustAnalyzer {
908-
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.build),
908+
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.host_target),
909909
target: run.target,
910910
});
911911
}
@@ -950,7 +950,7 @@ impl Step for RustAnalyzerProcMacroSrv {
950950

951951
fn make_run(run: RunConfig<'_>) {
952952
run.builder.ensure(RustAnalyzerProcMacroSrv {
953-
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.build),
953+
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.host_target),
954954
target: run.target,
955955
});
956956
}
@@ -1003,7 +1003,7 @@ impl Step for LlvmBitcodeLinker {
10031003

10041004
fn make_run(run: RunConfig<'_>) {
10051005
run.builder.ensure(LlvmBitcodeLinker {
1006-
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.build),
1006+
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.host_target),
10071007
extra_features: Vec::new(),
10081008
target: run.target,
10091009
});
@@ -1141,7 +1141,7 @@ macro_rules! tool_extended {
11411141

11421142
fn make_run(run: RunConfig<'_>) {
11431143
run.builder.ensure($name {
1144-
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.build),
1144+
compiler: run.builder.compiler(run.builder.top_stage, run.builder.config.host_target),
11451145
target: run.target,
11461146
});
11471147
}
@@ -1283,7 +1283,7 @@ impl Step for TestFloatParse {
12831283
}
12841284

12851285
fn run(self, builder: &Builder<'_>) -> ToolBuildResult {
1286-
let bootstrap_host = builder.config.build;
1286+
let bootstrap_host = builder.config.host_target;
12871287
let compiler = builder.compiler(builder.top_stage, bootstrap_host);
12881288

12891289
builder.ensure(ToolBuild {
@@ -1306,7 +1306,7 @@ impl Builder<'_> {
13061306
/// `host`.
13071307
pub fn tool_cmd(&self, tool: Tool) -> BootstrapCommand {
13081308
let mut cmd = command(self.tool_exe(tool));
1309-
let compiler = self.compiler(0, self.config.build);
1309+
let compiler = self.compiler(0, self.config.host_target);
13101310
let host = &compiler.host;
13111311
// Prepares the `cmd` provided to be able to run the `compiler` provided.
13121312
//

‎src/bootstrap/src/core/builder/mod.rs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ pub struct RunConfig<'a> {
137137

138138
impl RunConfig<'_> {
139139
pub fn build_triple(&self) -> TargetSelection {
140-
self.builder.build.build
140+
self.builder.build.host_target
141141
}
142142

143143
/// Return a list of crate names selected by `run.paths`.
@@ -1297,10 +1297,10 @@ impl<'a> Builder<'a> {
12971297
) -> Compiler {
12981298
let mut resolved_compiler = if self.build.force_use_stage2(stage) {
12991299
trace!(target: "COMPILER_FOR", ?stage, "force_use_stage2");
1300-
self.compiler(2, self.config.build)
1300+
self.compiler(2, self.config.host_target)
13011301
} else if self.build.force_use_stage1(stage, target) {
13021302
trace!(target: "COMPILER_FOR", ?stage, "force_use_stage1");
1303-
self.compiler(1, self.config.build)
1303+
self.compiler(1, self.config.host_target)
13041304
} else {
13051305
trace!(target: "COMPILER_FOR", ?stage, ?host, "no force, fallback to `compiler()`");
13061306
self.compiler(stage, host)
@@ -1358,7 +1358,7 @@ impl<'a> Builder<'a> {
13581358
/// Windows.
13591359
pub fn libdir_relative(&self, compiler: Compiler) -> &Path {
13601360
if compiler.is_snapshot(self) {
1361-
libdir(self.config.build).as_ref()
1361+
libdir(self.config.host_target).as_ref()
13621362
} else {
13631363
match self.config.libdir_relative() {
13641364
Some(relative_libdir) if compiler.stage >= 1 => relative_libdir,
@@ -1439,9 +1439,10 @@ impl<'a> Builder<'a> {
14391439
return cmd;
14401440
}
14411441

1442-
let _ = self.ensure(tool::Clippy { compiler: run_compiler, target: self.build.build });
1443-
let cargo_clippy =
1444-
self.ensure(tool::CargoClippy { compiler: run_compiler, target: self.build.build });
1442+
let _ =
1443+
self.ensure(tool::Clippy { compiler: run_compiler, target: self.build.host_target });
1444+
let cargo_clippy = self
1445+
.ensure(tool::CargoClippy { compiler: run_compiler, target: self.build.host_target });
14451446
let mut dylib_path = helpers::dylib_path();
14461447
dylib_path.insert(0, self.sysroot(run_compiler).join("lib"));
14471448

@@ -1454,9 +1455,10 @@ impl<'a> Builder<'a> {
14541455
pub fn cargo_miri_cmd(&self, run_compiler: Compiler) -> BootstrapCommand {
14551456
assert!(run_compiler.stage > 0, "miri can not be invoked at stage 0");
14561457
// Prepare the tools
1457-
let miri = self.ensure(tool::Miri { compiler: run_compiler, target: self.build.build });
1458+
let miri =
1459+
self.ensure(tool::Miri { compiler: run_compiler, target: self.build.host_target });
14581460
let cargo_miri =
1459-
self.ensure(tool::CargoMiri { compiler: run_compiler, target: self.build.build });
1461+
self.ensure(tool::CargoMiri { compiler: run_compiler, target: self.build.host_target });
14601462
// Invoke cargo-miri, make sure it can find miri and cargo.
14611463
let mut cmd = command(cargo_miri.tool_path);
14621464
cmd.env("MIRI", &miri.tool_path);

‎src/bootstrap/src/core/builder/tests.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ fn configure_with_args(cmd: &[String], host: &[&str], target: &[&str]) -> Config
4646
.join(&thread::current().name().unwrap_or("unknown").replace(":", "-"));
4747
t!(fs::create_dir_all(&dir));
4848
config.out = dir;
49-
config.build = TargetSelection::from_user(TEST_TRIPLE_1);
49+
config.host_target = TargetSelection::from_user(TEST_TRIPLE_1);
5050
config.hosts = host.iter().map(|s| TargetSelection::from_user(s)).collect();
5151
config.targets = target.iter().map(|s| TargetSelection::from_user(s)).collect();
5252
config
@@ -1102,7 +1102,7 @@ fn test_prebuilt_llvm_config_path_resolution() {
11021102
let actual = drop_win_disk_prefix_if_present(actual);
11031103
assert_eq!(expected, actual);
11041104

1105-
let actual = prebuilt_llvm_config(&builder, builder.config.build, false)
1105+
let actual = prebuilt_llvm_config(&builder, builder.config.host_target, false)
11061106
.llvm_result()
11071107
.llvm_config
11081108
.clone();
@@ -1120,15 +1120,15 @@ fn test_prebuilt_llvm_config_path_resolution() {
11201120
let build = Build::new(config.clone());
11211121
let builder = Builder::new(&build);
11221122

1123-
let actual = prebuilt_llvm_config(&builder, builder.config.build, false)
1123+
let actual = prebuilt_llvm_config(&builder, builder.config.host_target, false)
11241124
.llvm_result()
11251125
.llvm_config
11261126
.clone();
11271127
let expected = builder
11281128
.out
1129-
.join(builder.config.build)
1129+
.join(builder.config.host_target)
11301130
.join("llvm/bin")
1131-
.join(exe("llvm-config", builder.config.build));
1131+
.join(exe("llvm-config", builder.config.host_target));
11321132
assert_eq!(expected, actual);
11331133

11341134
let config = configure(
@@ -1143,15 +1143,15 @@ fn test_prebuilt_llvm_config_path_resolution() {
11431143
let build = Build::new(config.clone());
11441144
let builder = Builder::new(&build);
11451145

1146-
let actual = prebuilt_llvm_config(&builder, builder.config.build, false)
1146+
let actual = prebuilt_llvm_config(&builder, builder.config.host_target, false)
11471147
.llvm_result()
11481148
.llvm_config
11491149
.clone();
11501150
let expected = builder
11511151
.out
1152-
.join(builder.config.build)
1152+
.join(builder.config.host_target)
11531153
.join("ci-llvm/bin")
1154-
.join(exe("llvm-config", builder.config.build));
1154+
.join(exe("llvm-config", builder.config.host_target));
11551155
assert_eq!(expected, actual);
11561156
}
11571157
}
@@ -1163,7 +1163,7 @@ fn test_is_builder_target() {
11631163

11641164
for (target1, target2) in [(target1, target2), (target2, target1)] {
11651165
let mut config = configure("build", &[], &[]);
1166-
config.build = target1;
1166+
config.host_target = target1;
11671167
let build = Build::new(config);
11681168
let builder = Builder::new(&build);
11691169

‎src/bootstrap/src/core/config/config.rs

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ pub struct Config {
221221

222222
pub reproducible_artifacts: Vec<String>,
223223

224-
pub build: TargetSelection,
224+
pub host_target: TargetSelection,
225225
pub hosts: Vec<TargetSelection>,
226226
pub targets: Vec<TargetSelection>,
227227
pub local_rebuild: bool,
@@ -346,7 +346,7 @@ impl Config {
346346
stderr_is_tty: std::io::stderr().is_terminal(),
347347

348348
// set by build.rs
349-
build: TargetSelection::from_user(env!("BUILD_TRIPLE")),
349+
host_target: TargetSelection::from_user(env!("BUILD_TRIPLE")),
350350

351351
src: {
352352
let manifest_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
@@ -727,7 +727,7 @@ impl Config {
727727
config.jobs = Some(threads_from_config(flags.jobs.unwrap_or(jobs.unwrap_or(0))));
728728

729729
if let Some(file_build) = build {
730-
config.build = TargetSelection::from_user(&file_build);
730+
config.host_target = TargetSelection::from_user(&file_build);
731731
};
732732

733733
set(&mut config.out, flags.build_dir.or_else(|| build_dir.map(PathBuf::from)));
@@ -753,10 +753,10 @@ impl Config {
753753
config.download_beta_toolchain();
754754
config
755755
.out
756-
.join(config.build)
756+
.join(config.host_target)
757757
.join("stage0")
758758
.join("bin")
759-
.join(exe("rustc", config.build))
759+
.join(exe("rustc", config.host_target))
760760
};
761761

762762
config.initial_sysroot = t!(PathBuf::from_str(
@@ -777,7 +777,7 @@ impl Config {
777777
cargo
778778
} else {
779779
config.download_beta_toolchain();
780-
config.initial_sysroot.join("bin").join(exe("cargo", config.build))
780+
config.initial_sysroot.join("bin").join(exe("cargo", config.host_target))
781781
};
782782

783783
// NOTE: it's important this comes *after* we set `initial_rustc` just above.
@@ -792,7 +792,7 @@ impl Config {
792792
} else if let Some(file_host) = host {
793793
file_host.iter().map(|h| TargetSelection::from_user(h)).collect()
794794
} else {
795-
vec![config.build]
795+
vec![config.host_target]
796796
};
797797
config.targets = if let Some(TargetSelectionList(arg_target)) = flags.target {
798798
arg_target
@@ -926,17 +926,19 @@ impl Config {
926926
}
927927

928928
if config.llvm_from_ci {
929-
let triple = &config.build.triple;
929+
let triple = &config.host_target.triple;
930930
let ci_llvm_bin = config.ci_llvm_root().join("bin");
931931
let build_target = config
932932
.target_config
933-
.entry(config.build)
933+
.entry(config.host_target)
934934
.or_insert_with(|| Target::from_triple(triple));
935935

936936
check_ci_llvm!(build_target.llvm_config);
937937
check_ci_llvm!(build_target.llvm_filecheck);
938-
build_target.llvm_config = Some(ci_llvm_bin.join(exe("llvm-config", config.build)));
939-
build_target.llvm_filecheck = Some(ci_llvm_bin.join(exe("FileCheck", config.build)));
938+
build_target.llvm_config =
939+
Some(ci_llvm_bin.join(exe("llvm-config", config.host_target)));
940+
build_target.llvm_filecheck =
941+
Some(ci_llvm_bin.join(exe("FileCheck", config.host_target)));
940942
}
941943

942944
config.apply_dist_config(toml.dist);
@@ -953,7 +955,7 @@ impl Config {
953955
);
954956
}
955957

956-
if config.lld_enabled && config.is_system_llvm(config.build) {
958+
if config.lld_enabled && config.is_system_llvm(config.host_target) {
957959
eprintln!(
958960
"Warning: LLD is enabled when using external llvm-config. LLD will not be built and copied to the sysroot."
959961
);
@@ -1147,13 +1149,13 @@ impl Config {
11471149
/// The absolute path to the downloaded LLVM artifacts.
11481150
pub(crate) fn ci_llvm_root(&self) -> PathBuf {
11491151
assert!(self.llvm_from_ci);
1150-
self.out.join(self.build).join("ci-llvm")
1152+
self.out.join(self.host_target).join("ci-llvm")
11511153
}
11521154

11531155
/// Directory where the extracted `rustc-dev` component is stored.
11541156
pub(crate) fn ci_rustc_dir(&self) -> PathBuf {
11551157
assert!(self.download_rustc());
1156-
self.out.join(self.build).join("ci-rustc")
1158+
self.out.join(self.host_target).join("ci-rustc")
11571159
}
11581160

11591161
/// Determine whether llvm should be linked dynamically.
@@ -1237,7 +1239,7 @@ impl Config {
12371239
// Check the config compatibility
12381240
// FIXME: this doesn't cover `--set` flags yet.
12391241
let res = check_incompatible_options_for_ci_rustc(
1240-
self.build,
1242+
self.host_target,
12411243
current_config_toml,
12421244
ci_config_toml,
12431245
);
@@ -1473,7 +1475,7 @@ impl Config {
14731475
debug_assertions_requested: bool,
14741476
llvm_assertions: bool,
14751477
) -> Option<String> {
1476-
if !is_download_ci_available(&self.build.triple, llvm_assertions) {
1478+
if !is_download_ci_available(&self.host_target.triple, llvm_assertions) {
14771479
return None;
14781480
}
14791481

@@ -1709,7 +1711,7 @@ impl Config {
17091711

17101712
/// Checks if the given target is the same as the host target.
17111713
pub fn is_host_target(&self, target: TargetSelection) -> bool {
1712-
self.build == target
1714+
self.host_target == target
17131715
}
17141716

17151717
/// Returns `true` if this is an external version of LLVM not managed by bootstrap.

‎src/bootstrap/src/core/config/flags.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub struct Flags {
5959
pub build_dir: Option<PathBuf>,
6060

6161
#[arg(global = true, long, value_hint = clap::ValueHint::Other, value_name = "BUILD")]
62-
/// build target of the stage0 compiler
62+
/// host target of the stage0 compiler
6363
pub build: Option<String>,
6464

6565
#[arg(global = true, long, value_hint = clap::ValueHint::Other, value_name = "HOST", value_parser = target_selection_list)]

‎src/bootstrap/src/core/config/toml/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ impl Config {
147147
}
148148

149149
let builder_config_path =
150-
self.out.join(self.build.triple).join(build_name).join(BUILDER_CONFIG_FILENAME);
150+
self.out.join(self.host_target.triple).join(build_name).join(BUILDER_CONFIG_FILENAME);
151151
Self::get_toml(&builder_config_path)
152152
}
153153

‎src/bootstrap/src/core/config/toml/rust.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -621,13 +621,13 @@ impl Config {
621621
// thus, disabled
622622
// - similarly, lld will not be built nor used by default when explicitly asked not to, e.g.
623623
// when the config sets `rust.lld = false`
624-
if self.build.triple == "x86_64-unknown-linux-gnu"
625-
&& self.hosts == [self.build]
624+
if self.host_target.triple == "x86_64-unknown-linux-gnu"
625+
&& self.hosts == [self.host_target]
626626
&& (self.channel == "dev" || self.channel == "nightly")
627627
{
628628
let no_llvm_config = self
629629
.target_config
630-
.get(&self.build)
630+
.get(&self.host_target)
631631
.is_some_and(|target_config| target_config.llvm_config.is_none());
632632
let enable_lld = self.llvm_from_ci || no_llvm_config;
633633
// Prefer the config setting in case an explicit opt-out is needed.

‎src/bootstrap/src/core/config/toml/target.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ impl Config {
101101
let mut target = Target::from_triple(&triple);
102102

103103
if let Some(ref s) = cfg.llvm_config {
104-
if self.download_rustc_commit.is_some() && triple == *self.build.triple {
104+
if self.download_rustc_commit.is_some() && triple == *self.host_target.triple {
105105
panic!(
106106
"setting llvm_config for the host is incompatible with download-rustc"
107107
);

‎src/bootstrap/src/core/download.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ impl Config {
256256
}
257257
curl.arg(url);
258258
if !self.check_run(&mut curl) {
259-
if self.build.contains("windows-msvc") {
259+
if self.host_target.contains("windows-msvc") {
260260
eprintln!("Fallback to PowerShell");
261261
for _ in 0..3 {
262262
let powershell = command("PowerShell.exe").allow_failure().args([
@@ -411,7 +411,7 @@ impl Config {
411411

412412
let date = &self.stage0_metadata.compiler.date;
413413
let version = &self.stage0_metadata.compiler.version;
414-
let host = self.build;
414+
let host = self.host_target;
415415

416416
let clippy_stamp =
417417
BuildStamp::new(&self.initial_sysroot).with_prefix("clippy").add_stamp(date);
@@ -449,7 +449,7 @@ impl Config {
449449
let VersionMetadata { date, version } = self.stage0_metadata.rustfmt.as_ref()?;
450450
let channel = format!("{version}-{date}");
451451

452-
let host = self.build;
452+
let host = self.host_target;
453453
let bin_root = self.out.join(host).join("rustfmt");
454454
let rustfmt_path = bin_root.join("bin").join(exe("rustfmt", host));
455455
let rustfmt_stamp = BuildStamp::new(&bin_root).with_prefix("rustfmt").add_stamp(channel);
@@ -557,11 +557,11 @@ impl Config {
557557
extra_components: &[&str],
558558
download_component: fn(&Config, String, &str, &str),
559559
) {
560-
let host = self.build.triple;
560+
let host = self.host_target.triple;
561561
let bin_root = self.out.join(host).join(sysroot);
562562
let rustc_stamp = BuildStamp::new(&bin_root).with_prefix("rustc").add_stamp(stamp_key);
563563

564-
if !bin_root.join("bin").join(exe("rustc", self.build)).exists()
564+
if !bin_root.join("bin").join(exe("rustc", self.host_target)).exists()
565565
|| !rustc_stamp.is_up_to_date()
566566
{
567567
if bin_root.exists() {
@@ -630,7 +630,7 @@ impl Config {
630630
t!(fs::create_dir_all(&cache_dir));
631631
}
632632

633-
let bin_root = self.out.join(self.build).join(destination);
633+
let bin_root = self.out.join(self.host_target).join(destination);
634634
let tarball = cache_dir.join(&filename);
635635
let (base_url, url, should_verify) = match mode {
636636
DownloadSource::CI => {
@@ -759,7 +759,7 @@ download-rustc = false
759759
let now = std::time::SystemTime::now();
760760
let file_times = fs::FileTimes::new().set_accessed(now).set_modified(now);
761761

762-
let llvm_config = llvm_root.join("bin").join(exe("llvm-config", self.build));
762+
let llvm_config = llvm_root.join("bin").join(exe("llvm-config", self.host_target));
763763
t!(crate::utils::helpers::set_file_times(llvm_config, file_times));
764764

765765
if self.should_fix_bins_and_dylibs() {
@@ -814,7 +814,7 @@ download-rustc = false
814814
&self.stage0_metadata.config.artifacts_server
815815
};
816816
let version = self.artifact_version_part(llvm_sha);
817-
let filename = format!("rust-dev-{}-{}.tar.xz", version, self.build.triple);
817+
let filename = format!("rust-dev-{}-{}.tar.xz", version, self.host_target.triple);
818818
let tarball = rustc_cache.join(&filename);
819819
if !tarball.exists() {
820820
let help_on_error = "ERROR: failed to download llvm from ci
@@ -844,7 +844,7 @@ download-rustc = false
844844
}
845845
let base = &self.stage0_metadata.config.artifacts_server;
846846
let version = self.artifact_version_part(gcc_sha);
847-
let filename = format!("gcc-{version}-{}.tar.xz", self.build.triple);
847+
let filename = format!("gcc-{version}-{}.tar.xz", self.host_target.triple);
848848
let tarball = gcc_cache.join(&filename);
849849
if !tarball.exists() {
850850
let help_on_error = "ERROR: failed to download gcc from ci

‎src/bootstrap/src/core/sanity.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ pub fn check(build: &mut Build) {
109109

110110
// Ensure that a compatible version of libstdc++ is available on the system when using `llvm.download-ci-llvm`.
111111
#[cfg(not(test))]
112-
if !build.config.dry_run() && !build.build.is_msvc() && build.config.llvm_from_ci {
112+
if !build.config.dry_run() && !build.host_target.is_msvc() && build.config.llvm_from_ci {
113113
let builder = Builder::new(build);
114-
let libcxx_version = builder.ensure(tool::LibcxxVersionTool { target: build.build });
114+
let libcxx_version = builder.ensure(tool::LibcxxVersionTool { target: build.host_target });
115115

116116
match libcxx_version {
117117
tool::LibcxxVersion::Gnu(version) => {
@@ -237,7 +237,7 @@ than building it.
237237
}
238238

239239
// skip check for cross-targets
240-
if skip_target_sanity && target != &build.build {
240+
if skip_target_sanity && target != &build.host_target {
241241
continue;
242242
}
243243

@@ -308,7 +308,7 @@ than building it.
308308

309309
if build.config.llvm_enabled(*host) {
310310
// Externally configured LLVM requires FileCheck to exist
311-
let filecheck = build.llvm_filecheck(build.build);
311+
let filecheck = build.llvm_filecheck(build.host_target);
312312
if !filecheck.starts_with(&build.out)
313313
&& !filecheck.exists()
314314
&& build.config.codegen_tests
@@ -333,7 +333,7 @@ than building it.
333333
}
334334

335335
// skip check for cross-targets
336-
if skip_target_sanity && target != &build.build {
336+
if skip_target_sanity && target != &build.host_target {
337337
continue;
338338
}
339339

‎src/bootstrap/src/lib.rs

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ pub struct Build {
175175
verbosity: usize,
176176

177177
/// Build triple for the pre-compiled snapshot compiler.
178-
build: TargetSelection,
178+
host_target: TargetSelection,
179179
/// Which triples to produce a compiler toolchain for.
180180
hosts: Vec<TargetSelection>,
181181
/// Which triples to build libraries (core/alloc/std/test/proc_macro) for.
@@ -420,7 +420,7 @@ impl Build {
420420
if bootstrap_out.ends_with("deps") {
421421
bootstrap_out.pop();
422422
}
423-
if !bootstrap_out.join(exe("rustc", config.build)).exists() && !cfg!(test) {
423+
if !bootstrap_out.join(exe("rustc", config.host_target)).exists() && !cfg!(test) {
424424
// this restriction can be lifted whenever https://github.com/rust-lang/rfcs/pull/3028 is implemented
425425
panic!(
426426
"`rustc` not found in {}, run `cargo build --bins` before `cargo run`",
@@ -436,15 +436,17 @@ impl Build {
436436
initial_lld,
437437
initial_relative_libdir,
438438
initial_rustc: config.initial_rustc.clone(),
439-
initial_rustdoc: config.initial_rustc.with_file_name(exe("rustdoc", config.build)),
439+
initial_rustdoc: config
440+
.initial_rustc
441+
.with_file_name(exe("rustdoc", config.host_target)),
440442
initial_cargo: config.initial_cargo.clone(),
441443
initial_sysroot: config.initial_sysroot.clone(),
442444
local_rebuild: config.local_rebuild,
443445
fail_fast: config.cmd.fail_fast(),
444446
doc_tests: config.cmd.doc_tests(),
445447
verbosity: config.verbose,
446448

447-
build: config.build,
449+
host_target: config.host_target,
448450
hosts: config.hosts.clone(),
449451
targets: config.targets.clone(),
450452

@@ -521,7 +523,7 @@ impl Build {
521523
}
522524

523525
// Create symbolic link to use host sysroot from a consistent path (e.g., in the rust-analyzer config file).
524-
let build_triple = build.out.join(build.build);
526+
let build_triple = build.out.join(build.host_target);
525527
t!(fs::create_dir_all(&build_triple));
526528
let host = build.out.join("host");
527529
if host.is_symlink() {
@@ -932,7 +934,7 @@ impl Build {
932934

933935
/// Returns the libdir of the snapshot compiler.
934936
fn rustc_snapshot_libdir(&self) -> PathBuf {
935-
self.rustc_snapshot_sysroot().join(libdir(self.config.build))
937+
self.rustc_snapshot_sysroot().join(libdir(self.config.host_target))
936938
}
937939

938940
/// Returns the sysroot of the snapshot compiler.
@@ -973,7 +975,7 @@ impl Build {
973975
what: impl Display,
974976
target: impl Into<Option<TargetSelection>>,
975977
) -> Option<gha::Group> {
976-
self.msg(Kind::Clippy, self.config.stage, what, self.config.build, target)
978+
self.msg(Kind::Clippy, self.config.stage, what, self.config.host_target, target)
977979
}
978980

979981
#[must_use = "Groups should not be dropped until the Step finishes running"]
@@ -988,7 +990,7 @@ impl Build {
988990
Kind::Check,
989991
custom_stage.unwrap_or(self.config.stage),
990992
what,
991-
self.config.build,
993+
self.config.host_target,
992994
target,
993995
)
994996
}
@@ -1246,7 +1248,7 @@ impl Build {
12461248
Some(self.cc(target))
12471249
} else if self.config.lld_mode.is_used()
12481250
&& self.is_lld_direct_linker(target)
1249-
&& self.build == target
1251+
&& self.host_target == target
12501252
{
12511253
match self.config.lld_mode {
12521254
LldMode::SelfContained => Some(self.initial_lld.clone()),
@@ -1400,7 +1402,7 @@ impl Build {
14001402

14011403
/// Path to the python interpreter to use
14021404
fn python(&self) -> &Path {
1403-
if self.config.build.ends_with("apple-darwin") {
1405+
if self.config.host_target.ends_with("apple-darwin") {
14041406
// Force /usr/bin/python3 on macOS for LLDB tests because we're loading the
14051407
// LLDB plugin's compiled module which only works with the system python
14061408
// (namely not Homebrew-installed python)
@@ -1440,7 +1442,7 @@ impl Build {
14401442
!self.config.full_bootstrap
14411443
&& !self.config.download_rustc()
14421444
&& stage >= 2
1443-
&& (self.hosts.contains(&target) || target == self.build)
1445+
&& (self.hosts.contains(&target) || target == self.host_target)
14441446
}
14451447

14461448
/// Checks whether the `compiler` compiling for `target` should be forced to
@@ -1877,7 +1879,7 @@ to download LLVM rather than building it.
18771879
// In these cases we automatically enable Ninja if we find it in the
18781880
// environment.
18791881
if !self.config.ninja_in_file
1880-
&& self.config.build.is_msvc()
1882+
&& self.config.host_target.is_msvc()
18811883
&& cmd_finder.maybe_have("ninja").is_some()
18821884
{
18831885
return true;
@@ -1946,7 +1948,7 @@ impl Compiler {
19461948

19471949
/// Returns `true` if this is a snapshot compiler for `build`'s configuration
19481950
pub fn is_snapshot(&self, build: &Build) -> bool {
1949-
self.stage == 0 && self.host == build.build
1951+
self.stage == 0 && self.host == build.host_target
19501952
}
19511953

19521954
/// Indicates whether the compiler was forced to use a specific stage.

‎src/bootstrap/src/utils/cc_detect.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fn new_cc_build(build: &Build, target: TargetSelection) -> cc::Build {
3939
// Compress debuginfo
4040
.flag_if_supported("-gz")
4141
.target(&target.triple)
42-
.host(&build.build.triple);
42+
.host(&build.host_target.triple);
4343
match build.crt_static(target) {
4444
Some(a) => {
4545
cfg.static_crt(a);
@@ -70,7 +70,7 @@ pub fn find(build: &Build) {
7070
| crate::Subcommand::Suggest { .. }
7171
| crate::Subcommand::Format { .. }
7272
| crate::Subcommand::Setup { .. } => {
73-
build.hosts.iter().cloned().chain(iter::once(build.build)).collect()
73+
build.hosts.iter().cloned().chain(iter::once(build.host_target)).collect()
7474
}
7575

7676
_ => {
@@ -81,7 +81,7 @@ pub fn find(build: &Build) {
8181
.iter()
8282
.chain(&build.hosts)
8383
.cloned()
84-
.chain(iter::once(build.build))
84+
.chain(iter::once(build.host_target))
8585
.collect()
8686
}
8787
};

‎src/bootstrap/src/utils/cc_detect/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ fn test_find() {
155155
build.targets.push(target1.clone());
156156
build.hosts.push(target2.clone());
157157
find(&build);
158-
for t in build.hosts.iter().chain(build.targets.iter()).chain(iter::once(&build.build)) {
158+
for t in build.hosts.iter().chain(build.targets.iter()).chain(iter::once(&build.host_target)) {
159159
assert!(build.cc.borrow().contains_key(t), "CC not set for target {}", t.triple);
160160
}
161161
}

‎src/etc/completions/x.fish

Lines changed: 23 additions & 23 deletions
Large diffs are not rendered by default.

‎src/etc/completions/x.ps1

Lines changed: 23 additions & 23 deletions
Large diffs are not rendered by default.

‎src/etc/completions/x.py.fish

Lines changed: 23 additions & 23 deletions
Large diffs are not rendered by default.

‎src/etc/completions/x.py.ps1

Lines changed: 23 additions & 23 deletions
Large diffs are not rendered by default.

‎src/etc/completions/x.py.zsh

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ _x.py() {
1717
_arguments "${_arguments_options[@]}" : \
1818
'--config=[TOML configuration file for build]:FILE:_files' \
1919
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
20-
'--build=[build target of the stage0 compiler]:BUILD:' \
20+
'--build=[host target of the stage0 compiler]:BUILD:' \
2121
'--host=[host targets to build]:HOST:' \
2222
'--target=[target targets to build]:TARGET:' \
2323
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -69,7 +69,7 @@ _x.py() {
6969
_arguments "${_arguments_options[@]}" : \
7070
'--config=[TOML configuration file for build]:FILE:_files' \
7171
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
72-
'--build=[build target of the stage0 compiler]:BUILD:' \
72+
'--build=[host target of the stage0 compiler]:BUILD:' \
7373
'--host=[host targets to build]:HOST:' \
7474
'--target=[target targets to build]:TARGET:' \
7575
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -113,7 +113,7 @@ _arguments "${_arguments_options[@]}" : \
113113
_arguments "${_arguments_options[@]}" : \
114114
'--config=[TOML configuration file for build]:FILE:_files' \
115115
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
116-
'--build=[build target of the stage0 compiler]:BUILD:' \
116+
'--build=[host target of the stage0 compiler]:BUILD:' \
117117
'--host=[host targets to build]:HOST:' \
118118
'--target=[target targets to build]:TARGET:' \
119119
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -162,7 +162,7 @@ _arguments "${_arguments_options[@]}" : \
162162
'*-F+[clippy lints to forbid]:LINT:_default' \
163163
'--config=[TOML configuration file for build]:FILE:_files' \
164164
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
165-
'--build=[build target of the stage0 compiler]:BUILD:' \
165+
'--build=[host target of the stage0 compiler]:BUILD:' \
166166
'--host=[host targets to build]:HOST:' \
167167
'--target=[target targets to build]:TARGET:' \
168168
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -209,7 +209,7 @@ _arguments "${_arguments_options[@]}" : \
209209
_arguments "${_arguments_options[@]}" : \
210210
'--config=[TOML configuration file for build]:FILE:_files' \
211211
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
212-
'--build=[build target of the stage0 compiler]:BUILD:' \
212+
'--build=[host target of the stage0 compiler]:BUILD:' \
213213
'--host=[host targets to build]:HOST:' \
214214
'--target=[target targets to build]:TARGET:' \
215215
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -253,7 +253,7 @@ _arguments "${_arguments_options[@]}" : \
253253
_arguments "${_arguments_options[@]}" : \
254254
'--config=[TOML configuration file for build]:FILE:_files' \
255255
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
256-
'--build=[build target of the stage0 compiler]:BUILD:' \
256+
'--build=[host target of the stage0 compiler]:BUILD:' \
257257
'--host=[host targets to build]:HOST:' \
258258
'--target=[target targets to build]:TARGET:' \
259259
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -299,7 +299,7 @@ _arguments "${_arguments_options[@]}" : \
299299
_arguments "${_arguments_options[@]}" : \
300300
'--config=[TOML configuration file for build]:FILE:_files' \
301301
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
302-
'--build=[build target of the stage0 compiler]:BUILD:' \
302+
'--build=[host target of the stage0 compiler]:BUILD:' \
303303
'--host=[host targets to build]:HOST:' \
304304
'--target=[target targets to build]:TARGET:' \
305305
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -351,7 +351,7 @@ _arguments "${_arguments_options[@]}" : \
351351
'--run=[whether to execute run-* tests]:auto | always | never:_default' \
352352
'--config=[TOML configuration file for build]:FILE:_files' \
353353
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
354-
'--build=[build target of the stage0 compiler]:BUILD:' \
354+
'--build=[host target of the stage0 compiler]:BUILD:' \
355355
'--host=[host targets to build]:HOST:' \
356356
'--target=[target targets to build]:TARGET:' \
357357
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -404,7 +404,7 @@ _arguments "${_arguments_options[@]}" : \
404404
'*--test-args=[extra arguments to be passed for the test tool being used (e.g. libtest, compiletest or rustdoc)]:ARGS:_default' \
405405
'--config=[TOML configuration file for build]:FILE:_files' \
406406
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
407-
'--build=[build target of the stage0 compiler]:BUILD:' \
407+
'--build=[host target of the stage0 compiler]:BUILD:' \
408408
'--host=[host targets to build]:HOST:' \
409409
'--target=[target targets to build]:TARGET:' \
410410
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -452,7 +452,7 @@ _arguments "${_arguments_options[@]}" : \
452452
'*--test-args=[]:TEST_ARGS:_default' \
453453
'--config=[TOML configuration file for build]:FILE:_files' \
454454
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
455-
'--build=[build target of the stage0 compiler]:BUILD:' \
455+
'--build=[host target of the stage0 compiler]:BUILD:' \
456456
'--host=[host targets to build]:HOST:' \
457457
'--target=[target targets to build]:TARGET:' \
458458
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -497,7 +497,7 @@ _arguments "${_arguments_options[@]}" : \
497497
'--stage=[Clean a specific stage without touching other artifacts. By default, every stage is cleaned if this option is not used]:N:_default' \
498498
'--config=[TOML configuration file for build]:FILE:_files' \
499499
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
500-
'--build=[build target of the stage0 compiler]:BUILD:' \
500+
'--build=[host target of the stage0 compiler]:BUILD:' \
501501
'--host=[host targets to build]:HOST:' \
502502
'--target=[target targets to build]:TARGET:' \
503503
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -541,7 +541,7 @@ _arguments "${_arguments_options[@]}" : \
541541
_arguments "${_arguments_options[@]}" : \
542542
'--config=[TOML configuration file for build]:FILE:_files' \
543543
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
544-
'--build=[build target of the stage0 compiler]:BUILD:' \
544+
'--build=[host target of the stage0 compiler]:BUILD:' \
545545
'--host=[host targets to build]:HOST:' \
546546
'--target=[target targets to build]:TARGET:' \
547547
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -585,7 +585,7 @@ _arguments "${_arguments_options[@]}" : \
585585
_arguments "${_arguments_options[@]}" : \
586586
'--config=[TOML configuration file for build]:FILE:_files' \
587587
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
588-
'--build=[build target of the stage0 compiler]:BUILD:' \
588+
'--build=[host target of the stage0 compiler]:BUILD:' \
589589
'--host=[host targets to build]:HOST:' \
590590
'--target=[target targets to build]:TARGET:' \
591591
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -630,7 +630,7 @@ _arguments "${_arguments_options[@]}" : \
630630
'*--args=[arguments for the tool]:ARGS:_default' \
631631
'--config=[TOML configuration file for build]:FILE:_files' \
632632
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
633-
'--build=[build target of the stage0 compiler]:BUILD:' \
633+
'--build=[host target of the stage0 compiler]:BUILD:' \
634634
'--host=[host targets to build]:HOST:' \
635635
'--target=[target targets to build]:TARGET:' \
636636
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -674,7 +674,7 @@ _arguments "${_arguments_options[@]}" : \
674674
_arguments "${_arguments_options[@]}" : \
675675
'--config=[TOML configuration file for build]:FILE:_files' \
676676
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
677-
'--build=[build target of the stage0 compiler]:BUILD:' \
677+
'--build=[host target of the stage0 compiler]:BUILD:' \
678678
'--host=[host targets to build]:HOST:' \
679679
'--target=[target targets to build]:TARGET:' \
680680
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -719,7 +719,7 @@ _arguments "${_arguments_options[@]}" : \
719719
_arguments "${_arguments_options[@]}" : \
720720
'--config=[TOML configuration file for build]:FILE:_files' \
721721
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
722-
'--build=[build target of the stage0 compiler]:BUILD:' \
722+
'--build=[host target of the stage0 compiler]:BUILD:' \
723723
'--host=[host targets to build]:HOST:' \
724724
'--target=[target targets to build]:TARGET:' \
725725
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -765,7 +765,7 @@ _arguments "${_arguments_options[@]}" : \
765765
'*--sync=[Additional \`Cargo.toml\` to sync and vendor]:SYNC:_files' \
766766
'--config=[TOML configuration file for build]:FILE:_files' \
767767
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
768-
'--build=[build target of the stage0 compiler]:BUILD:' \
768+
'--build=[host target of the stage0 compiler]:BUILD:' \
769769
'--host=[host targets to build]:HOST:' \
770770
'--target=[target targets to build]:TARGET:' \
771771
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -810,7 +810,7 @@ _arguments "${_arguments_options[@]}" : \
810810
_arguments "${_arguments_options[@]}" : \
811811
'--config=[TOML configuration file for build]:FILE:_files' \
812812
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
813-
'--build=[build target of the stage0 compiler]:BUILD:' \
813+
'--build=[host target of the stage0 compiler]:BUILD:' \
814814
'--host=[host targets to build]:HOST:' \
815815
'--target=[target targets to build]:TARGET:' \
816816
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -867,7 +867,7 @@ _arguments "${_arguments_options[@]}" : \
867867
'*--profiles=[Select the profiles that should be benchmarked]:PROFILES:(Check Debug Doc Opt Clippy)' \
868868
'--config=[TOML configuration file for build]:FILE:_files' \
869869
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
870-
'--build=[build target of the stage0 compiler]:BUILD:' \
870+
'--build=[host target of the stage0 compiler]:BUILD:' \
871871
'--host=[host targets to build]:HOST:' \
872872
'--target=[target targets to build]:TARGET:' \
873873
'*--skip=[build paths to skip]:PATH:_files' \
@@ -914,7 +914,7 @@ _arguments "${_arguments_options[@]}" : \
914914
'*--profiles=[Select the profiles that should be benchmarked]:PROFILES:(Check Debug Doc Opt Clippy)' \
915915
'--config=[TOML configuration file for build]:FILE:_files' \
916916
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
917-
'--build=[build target of the stage0 compiler]:BUILD:' \
917+
'--build=[host target of the stage0 compiler]:BUILD:' \
918918
'--host=[host targets to build]:HOST:' \
919919
'--target=[target targets to build]:TARGET:' \
920920
'*--skip=[build paths to skip]:PATH:_files' \
@@ -961,7 +961,7 @@ _arguments "${_arguments_options[@]}" : \
961961
'*--profiles=[Select the profiles that should be benchmarked]:PROFILES:(Check Debug Doc Opt Clippy)' \
962962
'--config=[TOML configuration file for build]:FILE:_files' \
963963
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
964-
'--build=[build target of the stage0 compiler]:BUILD:' \
964+
'--build=[host target of the stage0 compiler]:BUILD:' \
965965
'--host=[host targets to build]:HOST:' \
966966
'--target=[target targets to build]:TARGET:' \
967967
'*--skip=[build paths to skip]:PATH:_files' \
@@ -1008,7 +1008,7 @@ _arguments "${_arguments_options[@]}" : \
10081008
'*--profiles=[Select the profiles that should be benchmarked]:PROFILES:(Check Debug Doc Opt Clippy)' \
10091009
'--config=[TOML configuration file for build]:FILE:_files' \
10101010
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
1011-
'--build=[build target of the stage0 compiler]:BUILD:' \
1011+
'--build=[host target of the stage0 compiler]:BUILD:' \
10121012
'--host=[host targets to build]:HOST:' \
10131013
'--target=[target targets to build]:TARGET:' \
10141014
'*--skip=[build paths to skip]:PATH:_files' \
@@ -1052,7 +1052,7 @@ _arguments "${_arguments_options[@]}" : \
10521052
_arguments "${_arguments_options[@]}" : \
10531053
'--config=[TOML configuration file for build]:FILE:_files' \
10541054
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
1055-
'--build=[build target of the stage0 compiler]:BUILD:' \
1055+
'--build=[host target of the stage0 compiler]:BUILD:' \
10561056
'--host=[host targets to build]:HOST:' \
10571057
'--target=[target targets to build]:TARGET:' \
10581058
'*--exclude=[build paths to exclude]:PATH:_files' \

‎src/etc/completions/x.zsh

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ _x() {
1717
_arguments "${_arguments_options[@]}" : \
1818
'--config=[TOML configuration file for build]:FILE:_files' \
1919
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
20-
'--build=[build target of the stage0 compiler]:BUILD:' \
20+
'--build=[host target of the stage0 compiler]:BUILD:' \
2121
'--host=[host targets to build]:HOST:' \
2222
'--target=[target targets to build]:TARGET:' \
2323
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -69,7 +69,7 @@ _x() {
6969
_arguments "${_arguments_options[@]}" : \
7070
'--config=[TOML configuration file for build]:FILE:_files' \
7171
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
72-
'--build=[build target of the stage0 compiler]:BUILD:' \
72+
'--build=[host target of the stage0 compiler]:BUILD:' \
7373
'--host=[host targets to build]:HOST:' \
7474
'--target=[target targets to build]:TARGET:' \
7575
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -113,7 +113,7 @@ _arguments "${_arguments_options[@]}" : \
113113
_arguments "${_arguments_options[@]}" : \
114114
'--config=[TOML configuration file for build]:FILE:_files' \
115115
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
116-
'--build=[build target of the stage0 compiler]:BUILD:' \
116+
'--build=[host target of the stage0 compiler]:BUILD:' \
117117
'--host=[host targets to build]:HOST:' \
118118
'--target=[target targets to build]:TARGET:' \
119119
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -162,7 +162,7 @@ _arguments "${_arguments_options[@]}" : \
162162
'*-F+[clippy lints to forbid]:LINT:_default' \
163163
'--config=[TOML configuration file for build]:FILE:_files' \
164164
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
165-
'--build=[build target of the stage0 compiler]:BUILD:' \
165+
'--build=[host target of the stage0 compiler]:BUILD:' \
166166
'--host=[host targets to build]:HOST:' \
167167
'--target=[target targets to build]:TARGET:' \
168168
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -209,7 +209,7 @@ _arguments "${_arguments_options[@]}" : \
209209
_arguments "${_arguments_options[@]}" : \
210210
'--config=[TOML configuration file for build]:FILE:_files' \
211211
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
212-
'--build=[build target of the stage0 compiler]:BUILD:' \
212+
'--build=[host target of the stage0 compiler]:BUILD:' \
213213
'--host=[host targets to build]:HOST:' \
214214
'--target=[target targets to build]:TARGET:' \
215215
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -253,7 +253,7 @@ _arguments "${_arguments_options[@]}" : \
253253
_arguments "${_arguments_options[@]}" : \
254254
'--config=[TOML configuration file for build]:FILE:_files' \
255255
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
256-
'--build=[build target of the stage0 compiler]:BUILD:' \
256+
'--build=[host target of the stage0 compiler]:BUILD:' \
257257
'--host=[host targets to build]:HOST:' \
258258
'--target=[target targets to build]:TARGET:' \
259259
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -299,7 +299,7 @@ _arguments "${_arguments_options[@]}" : \
299299
_arguments "${_arguments_options[@]}" : \
300300
'--config=[TOML configuration file for build]:FILE:_files' \
301301
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
302-
'--build=[build target of the stage0 compiler]:BUILD:' \
302+
'--build=[host target of the stage0 compiler]:BUILD:' \
303303
'--host=[host targets to build]:HOST:' \
304304
'--target=[target targets to build]:TARGET:' \
305305
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -351,7 +351,7 @@ _arguments "${_arguments_options[@]}" : \
351351
'--run=[whether to execute run-* tests]:auto | always | never:_default' \
352352
'--config=[TOML configuration file for build]:FILE:_files' \
353353
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
354-
'--build=[build target of the stage0 compiler]:BUILD:' \
354+
'--build=[host target of the stage0 compiler]:BUILD:' \
355355
'--host=[host targets to build]:HOST:' \
356356
'--target=[target targets to build]:TARGET:' \
357357
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -404,7 +404,7 @@ _arguments "${_arguments_options[@]}" : \
404404
'*--test-args=[extra arguments to be passed for the test tool being used (e.g. libtest, compiletest or rustdoc)]:ARGS:_default' \
405405
'--config=[TOML configuration file for build]:FILE:_files' \
406406
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
407-
'--build=[build target of the stage0 compiler]:BUILD:' \
407+
'--build=[host target of the stage0 compiler]:BUILD:' \
408408
'--host=[host targets to build]:HOST:' \
409409
'--target=[target targets to build]:TARGET:' \
410410
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -452,7 +452,7 @@ _arguments "${_arguments_options[@]}" : \
452452
'*--test-args=[]:TEST_ARGS:_default' \
453453
'--config=[TOML configuration file for build]:FILE:_files' \
454454
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
455-
'--build=[build target of the stage0 compiler]:BUILD:' \
455+
'--build=[host target of the stage0 compiler]:BUILD:' \
456456
'--host=[host targets to build]:HOST:' \
457457
'--target=[target targets to build]:TARGET:' \
458458
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -497,7 +497,7 @@ _arguments "${_arguments_options[@]}" : \
497497
'--stage=[Clean a specific stage without touching other artifacts. By default, every stage is cleaned if this option is not used]:N:_default' \
498498
'--config=[TOML configuration file for build]:FILE:_files' \
499499
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
500-
'--build=[build target of the stage0 compiler]:BUILD:' \
500+
'--build=[host target of the stage0 compiler]:BUILD:' \
501501
'--host=[host targets to build]:HOST:' \
502502
'--target=[target targets to build]:TARGET:' \
503503
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -541,7 +541,7 @@ _arguments "${_arguments_options[@]}" : \
541541
_arguments "${_arguments_options[@]}" : \
542542
'--config=[TOML configuration file for build]:FILE:_files' \
543543
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
544-
'--build=[build target of the stage0 compiler]:BUILD:' \
544+
'--build=[host target of the stage0 compiler]:BUILD:' \
545545
'--host=[host targets to build]:HOST:' \
546546
'--target=[target targets to build]:TARGET:' \
547547
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -585,7 +585,7 @@ _arguments "${_arguments_options[@]}" : \
585585
_arguments "${_arguments_options[@]}" : \
586586
'--config=[TOML configuration file for build]:FILE:_files' \
587587
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
588-
'--build=[build target of the stage0 compiler]:BUILD:' \
588+
'--build=[host target of the stage0 compiler]:BUILD:' \
589589
'--host=[host targets to build]:HOST:' \
590590
'--target=[target targets to build]:TARGET:' \
591591
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -630,7 +630,7 @@ _arguments "${_arguments_options[@]}" : \
630630
'*--args=[arguments for the tool]:ARGS:_default' \
631631
'--config=[TOML configuration file for build]:FILE:_files' \
632632
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
633-
'--build=[build target of the stage0 compiler]:BUILD:' \
633+
'--build=[host target of the stage0 compiler]:BUILD:' \
634634
'--host=[host targets to build]:HOST:' \
635635
'--target=[target targets to build]:TARGET:' \
636636
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -674,7 +674,7 @@ _arguments "${_arguments_options[@]}" : \
674674
_arguments "${_arguments_options[@]}" : \
675675
'--config=[TOML configuration file for build]:FILE:_files' \
676676
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
677-
'--build=[build target of the stage0 compiler]:BUILD:' \
677+
'--build=[host target of the stage0 compiler]:BUILD:' \
678678
'--host=[host targets to build]:HOST:' \
679679
'--target=[target targets to build]:TARGET:' \
680680
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -719,7 +719,7 @@ _arguments "${_arguments_options[@]}" : \
719719
_arguments "${_arguments_options[@]}" : \
720720
'--config=[TOML configuration file for build]:FILE:_files' \
721721
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
722-
'--build=[build target of the stage0 compiler]:BUILD:' \
722+
'--build=[host target of the stage0 compiler]:BUILD:' \
723723
'--host=[host targets to build]:HOST:' \
724724
'--target=[target targets to build]:TARGET:' \
725725
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -765,7 +765,7 @@ _arguments "${_arguments_options[@]}" : \
765765
'*--sync=[Additional \`Cargo.toml\` to sync and vendor]:SYNC:_files' \
766766
'--config=[TOML configuration file for build]:FILE:_files' \
767767
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
768-
'--build=[build target of the stage0 compiler]:BUILD:' \
768+
'--build=[host target of the stage0 compiler]:BUILD:' \
769769
'--host=[host targets to build]:HOST:' \
770770
'--target=[target targets to build]:TARGET:' \
771771
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -810,7 +810,7 @@ _arguments "${_arguments_options[@]}" : \
810810
_arguments "${_arguments_options[@]}" : \
811811
'--config=[TOML configuration file for build]:FILE:_files' \
812812
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
813-
'--build=[build target of the stage0 compiler]:BUILD:' \
813+
'--build=[host target of the stage0 compiler]:BUILD:' \
814814
'--host=[host targets to build]:HOST:' \
815815
'--target=[target targets to build]:TARGET:' \
816816
'*--exclude=[build paths to exclude]:PATH:_files' \
@@ -867,7 +867,7 @@ _arguments "${_arguments_options[@]}" : \
867867
'*--profiles=[Select the profiles that should be benchmarked]:PROFILES:(Check Debug Doc Opt Clippy)' \
868868
'--config=[TOML configuration file for build]:FILE:_files' \
869869
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
870-
'--build=[build target of the stage0 compiler]:BUILD:' \
870+
'--build=[host target of the stage0 compiler]:BUILD:' \
871871
'--host=[host targets to build]:HOST:' \
872872
'--target=[target targets to build]:TARGET:' \
873873
'*--skip=[build paths to skip]:PATH:_files' \
@@ -914,7 +914,7 @@ _arguments "${_arguments_options[@]}" : \
914914
'*--profiles=[Select the profiles that should be benchmarked]:PROFILES:(Check Debug Doc Opt Clippy)' \
915915
'--config=[TOML configuration file for build]:FILE:_files' \
916916
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
917-
'--build=[build target of the stage0 compiler]:BUILD:' \
917+
'--build=[host target of the stage0 compiler]:BUILD:' \
918918
'--host=[host targets to build]:HOST:' \
919919
'--target=[target targets to build]:TARGET:' \
920920
'*--skip=[build paths to skip]:PATH:_files' \
@@ -961,7 +961,7 @@ _arguments "${_arguments_options[@]}" : \
961961
'*--profiles=[Select the profiles that should be benchmarked]:PROFILES:(Check Debug Doc Opt Clippy)' \
962962
'--config=[TOML configuration file for build]:FILE:_files' \
963963
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
964-
'--build=[build target of the stage0 compiler]:BUILD:' \
964+
'--build=[host target of the stage0 compiler]:BUILD:' \
965965
'--host=[host targets to build]:HOST:' \
966966
'--target=[target targets to build]:TARGET:' \
967967
'*--skip=[build paths to skip]:PATH:_files' \
@@ -1008,7 +1008,7 @@ _arguments "${_arguments_options[@]}" : \
10081008
'*--profiles=[Select the profiles that should be benchmarked]:PROFILES:(Check Debug Doc Opt Clippy)' \
10091009
'--config=[TOML configuration file for build]:FILE:_files' \
10101010
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
1011-
'--build=[build target of the stage0 compiler]:BUILD:' \
1011+
'--build=[host target of the stage0 compiler]:BUILD:' \
10121012
'--host=[host targets to build]:HOST:' \
10131013
'--target=[target targets to build]:TARGET:' \
10141014
'*--skip=[build paths to skip]:PATH:_files' \
@@ -1052,7 +1052,7 @@ _arguments "${_arguments_options[@]}" : \
10521052
_arguments "${_arguments_options[@]}" : \
10531053
'--config=[TOML configuration file for build]:FILE:_files' \
10541054
'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
1055-
'--build=[build target of the stage0 compiler]:BUILD:' \
1055+
'--build=[host target of the stage0 compiler]:BUILD:' \
10561056
'--host=[host targets to build]:HOST:' \
10571057
'--target=[target targets to build]:TARGET:' \
10581058
'*--exclude=[build paths to exclude]:PATH:_files' \

0 commit comments

Comments
 (0)
Please sign in to comment.