authorbors <bors@rust-lang.org> 2025-03-17 15:51:28 UTC
committerbors <bors@rust-lang.org> 2025-03-17 15:51:28 UTC
log8279176ccdfd4eebd40a671f75b6d3024ae56b42
tree9211ac589843f4f8040e0310a6a15347e7ffcebf
parent9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a
parent4579615b14a3a2ee1a0040365d969d9526ed7e1c

Auto merge of #137081 - Shourya742:2025-02-15-change-config.toml-to-bootstrap.toml, r=onur-ozkan,jieyouxu,kobzol

change config.toml to bootstrap.toml Currently, both Bootstrap and Cargo uses same name as their configuration file, which can be confusing. This PR is based on a discussion to rename `config.toml` to `bootstrap.toml` for Bootstrap. Closes: https://github.com/rust-lang/rust/issues/126875. I have split the PR into atomic commits to make it easier to review. Once the changes are finalized, I will squash them. I am particularly concerned about the changes made to modules that are not part of Bootstrap. How should we handle those changes? Should we ping the respective maintainers?

130 files changed, 1670 insertions(+), 1632 deletions(-)

.github/ISSUE_TEMPLATE/bootstrap.md+1-1
......@@ -32,7 +32,7 @@ Describe what you expected to happen.
3232Describe what actually happened.
3333-->
3434
35### Bootstrap configuration (config.toml)
35### Bootstrap configuration (bootstrap.toml)
3636```toml
3737<config>
3838```
.gitignore+2-1
......@@ -1,6 +1,6 @@
11# This file should only ignore things that are generated during a `x.py` build,
22# generated by common IDEs, and optional files controlled by the user that
3# affect the build (such as config.toml).
3# affect the build (such as bootstrap.toml).
44# In particular, things like `mir_dump` should not be listed here; they are only
55# created during manual debugging and many people like to clean up instead of
66# having git ignore such leftovers. You can use `.git/info/exclude` to
......@@ -34,6 +34,7 @@ Session.vim
3434!/tests/run-make/thumb-none-qemu/example/.cargo
3535
3636## Configuration
37/bootstrap.toml
3738/config.toml
3839/Makefile
3940config.mk
.ignore+2-1
......@@ -1,2 +1,3 @@
1# Make vscode *not* count `config.toml` as ignored, so it is included in search
1# Make vscode *not* count `bootstrap.toml` and `config.toml` as ignored, so it is included in search
2!/bootstrap.toml
23!/config.toml
INSTALL.md+5-5
......@@ -6,9 +6,9 @@ If you just want to install Rust, check out the [README.md](README.md) instead.*
66
77The Rust build system uses a Python script called `x.py` to build the compiler,
88which manages the bootstrapping process. It lives at the root of the project.
9It also uses a file named `config.toml` to determine various configuration
9It also uses a file named `bootstrap.toml` to determine various configuration
1010settings for the build. You can see a full list of options in
11`config.example.toml`.
11`bootstrap.example.toml`.
1212
1313The `x.py` command can be run directly on most Unix systems in the following
1414format:
......@@ -115,7 +115,7 @@ See [the rustc-dev-guide for more info][sysllvm].
115115
116116This project provides a configure script and makefile (the latter of which just
117117invokes `x.py`). `./configure` is the recommended way to programmatically
118generate a `config.toml`. `make` is not recommended (we suggest using `x.py`
118generate a `bootstrap.toml`. `make` is not recommended (we suggest using `x.py`
119119directly), but it is supported and we try not to break it unnecessarily.
120120
121121```sh
......@@ -123,7 +123,7 @@ directly), but it is supported and we try not to break it unnecessarily.
123123make && sudo make install
124124```
125125
126`configure` generates a `config.toml` which can also be used with normal `x.py`
126`configure` generates a `bootstrap.toml` which can also be used with normal `x.py`
127127invocations.
128128
129129## Building on Windows
......@@ -255,7 +255,7 @@ Windows build triples are:
255255 - `x86_64-pc-windows-msvc`
256256
257257The build triple can be specified by either specifying `--build=<triple>` when
258invoking `x.py` commands, or by creating a `config.toml` file (as described in
258invoking `x.py` commands, or by creating a `bootstrap.toml` file (as described in
259259[Building on a Unix-like system](#building-on-a-unix-like-system)), and passing
260260`--set build.build=<triple>` to `./configure`.
261261
RELEASES.md+2-2
......@@ -2282,7 +2282,7 @@ Compatibility Notes
22822282- [Cargo denies `CARGO_HOME` in the `[env]` configuration table. Cargo itself doesn't pick up this value, but recursive calls to cargo would, which was not intended.](https://github.com/rust-lang/cargo/pull/11644/)
22832283- [Debuginfo for build dependencies is now off if not explicitly set. This is expected to improve the overall build time.](https://github.com/rust-lang/cargo/pull/11252/)
22842284- [The Rust distribution no longer always includes rustdoc](https://github.com/rust-lang/rust/pull/106886)
2285 If `tools = [...]` is set in config.toml, we will respect a missing rustdoc in that list. By
2285 If `tools = [...]` is set in bootstrap.toml, we will respect a missing rustdoc in that list. By
22862286 default rustdoc remains included. To retain the prior behavior explicitly add `"rustdoc"` to the
22872287 list.
22882288
......@@ -5268,7 +5268,7 @@ related tools.
52685268
52695269- [Building `rustc` from source now uses `ninja` by default over `make`.][74922]
52705270 You can continue building with `make` by setting `ninja=false` in
5271 your `config.toml`.
5271 your `bootstrap.toml`.
52725272- [cg_llvm: `fewer_names` in `uncached_llvm_type`][76030]
52735273- [Made `ensure_sufficient_stack()` non-generic][76680]
52745274
REUSE.toml+1-1
......@@ -22,7 +22,7 @@ path = [
2222 "Cargo.lock",
2323 "Cargo.toml",
2424 "CODE_OF_CONDUCT.md",
25 "config.example.toml",
25 "bootstrap.example.toml",
2626 "configure",
2727 "CONTRIBUTING.md",
2828 "COPYRIGHT",
bootstrap.example.toml created+998
......@@ -0,0 +1,998 @@
1# Sample TOML configuration file for building Rust.
2#
3# To configure bootstrap, run `./configure` or `./x.py setup`.
4# See https://rustc-dev-guide.rust-lang.org/building/how-to-build-and-run.html#create-a-configtoml for more information.
5#
6# All options are commented out by default in this file, and they're commented
7# out with their default values. The build system by default looks for
8# `bootstrap.toml` in the current directory of a build for build configuration, but
9# a custom configuration file can also be specified with `--config` to the build
10# system.
11
12# =============================================================================
13# Global Settings
14# =============================================================================
15
16# Use different pre-set defaults than the global defaults.
17#
18# See `src/bootstrap/defaults` for more information.
19# Note that this has no default value (x.py uses the defaults in `bootstrap.example.toml`).
20#profile = <none>
21
22# Keeps track of major changes made to this configuration.
23#
24# This value also represents ID of the PR that caused major changes. Meaning,
25# you can visit github.com/rust-lang/rust/pull/{change-id} to check for more details.
26#
27# A 'major change' includes any of the following
28# - A new option
29# - A change in the default values
30#
31# If `change-id` does not match the version that is currently running,
32# `x.py` will inform you about the changes made on bootstrap.
33#change-id = <latest change id in src/bootstrap/src/utils/change_tracker.rs>
34
35# =============================================================================
36# Tweaking how LLVM is compiled
37# =============================================================================
38[llvm]
39
40# Whether to use Rust CI built LLVM instead of locally building it.
41#
42# Unless you're developing for a target where Rust CI doesn't build a compiler
43# toolchain or changing LLVM locally, you probably want to leave this enabled.
44#
45# Set this to `true` to download if CI llvm available otherwise it builds
46# from `src/llvm-project`.
47#
48# Set this to `"if-unchanged"` to download only if the llvm-project has not
49# been modified. You can also use this if you are unsure whether you're on a
50# tier 1 target. All tier 1 targets are currently supported.
51
52# Currently, we only support this when building LLVM for the build triple.
53#
54# Note that many of the LLVM options are not currently supported for
55# downloading. Currently only the "assertions" option can be toggled.
56#download-ci-llvm = true
57
58# Indicates whether the LLVM build is a Release or Debug build
59#optimize = true
60
61# Indicates whether LLVM should be built with ThinLTO. Note that this will
62# only succeed if you use clang, lld, llvm-ar, and llvm-ranlib in your C/C++
63# toolchain (see the `cc`, `cxx`, `linker`, `ar`, and `ranlib` options below).
64# More info at: https://clang.llvm.org/docs/ThinLTO.html#clang-bootstrap
65#thin-lto = false
66
67# Indicates whether an LLVM Release build should include debug info
68#release-debuginfo = false
69
70# Indicates whether the LLVM assertions are enabled or not
71# NOTE: When assertions are disabled, bugs in the integration between rustc and LLVM can lead to
72# unsoundness (segfaults, etc.) in the rustc process itself, not just in the generated code.
73#assertions = false
74
75# Indicates whether the LLVM testsuite is enabled in the build or not. Does
76# not execute the tests as part of the build as part of x.py build et al,
77# just makes it possible to do `ninja check-llvm` in the staged LLVM build
78# directory when doing LLVM development as part of Rust development.
79#tests = false
80
81# Indicates whether the LLVM plugin is enabled or not
82#plugins = false
83
84# Whether to build Enzyme as AutoDiff backend.
85#enzyme = false
86
87# Whether to build LLVM with support for it's gpu offload runtime.
88#offload = false
89
90# When true, link libstdc++ statically into the rustc_llvm.
91# This is useful if you don't want to use the dynamic version of that
92# library provided by LLVM.
93#static-libstdcpp = false
94
95# Enable LLVM to use zstd for compression.
96#libzstd = false
97
98# Whether to use Ninja to build LLVM. This runs much faster than make.
99#ninja = true
100
101# LLVM targets to build support for.
102# Note: this is NOT related to Rust compilation targets. However, as Rust is
103# dependent on LLVM for code generation, turning targets off here WILL lead to
104# the resulting rustc being unable to compile for the disabled architectures.
105#
106# To add support for new targets, see https://rustc-dev-guide.rust-lang.org/building/new-target.html.
107#targets = "AArch64;AMDGPU;ARM;BPF;Hexagon;LoongArch;MSP430;Mips;NVPTX;PowerPC;RISCV;Sparc;SystemZ;WebAssembly;X86"
108
109# LLVM experimental targets to build support for. These targets are specified in
110# the same format as above, but since these targets are experimental, they are
111# not built by default and the experimental Rust compilation targets that depend
112# on them will not work unless the user opts in to building them.
113#experimental-targets = "AVR;M68k;CSKY"
114
115# Cap the number of parallel linker invocations when compiling LLVM.
116# This can be useful when building LLVM with debug info, which significantly
117# increases the size of binaries and consequently the memory required by
118# each linker process.
119# If set to 0, linker invocations are treated like any other job and
120# controlled by bootstrap's -j parameter.
121#link-jobs = 0
122
123# Whether to build LLVM as a dynamically linked library (as opposed to statically linked).
124# Under the hood, this passes `--shared` to llvm-config.
125# NOTE: To avoid performing LTO multiple times, we suggest setting this to `true` when `thin-lto` is enabled.
126#link-shared = llvm.thin-lto
127
128# When building llvm, this configures what is being appended to the version.
129# To use LLVM version as is, provide an empty string.
130#version-suffix = if rust.channel == "dev" { "-rust-dev" } else { "-rust-$version-$channel" }
131
132# On MSVC you can compile LLVM with clang-cl, but the test suite doesn't pass
133# with clang-cl, so this is special in that it only compiles LLVM with clang-cl.
134# Note that this takes a /path/to/clang-cl, not a boolean.
135#clang-cl = cc
136
137# Pass extra compiler and linker flags to the LLVM CMake build.
138#cflags = ""
139#cxxflags = ""
140#ldflags = ""
141
142# Use libc++ when building LLVM instead of libstdc++. This is the default on
143# platforms already use libc++ as the default C++ library, but this option
144# allows you to use libc++ even on platforms when it's not. You need to ensure
145# that your host compiler ships with libc++.
146#use-libcxx = false
147
148# The value specified here will be passed as `-DLLVM_USE_LINKER` to CMake.
149#use-linker = <none> (path)
150
151# Whether or not to specify `-DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=YES`
152#allow-old-toolchain = false
153
154# Whether to include the Polly optimizer.
155#polly = false
156
157# Whether to build the clang compiler.
158#clang = false
159
160# Whether to enable llvm compilation warnings.
161#enable-warnings = false
162
163# Custom CMake defines to set when building LLVM.
164#build-config = {}
165
166# =============================================================================
167# Tweaking how GCC is compiled
168# =============================================================================
169[gcc]
170# Download GCC from CI instead of building it locally.
171# Note that this will attempt to download GCC even if there are local
172# modifications to the `src/gcc` submodule.
173# Currently, this is only supported for the `x86_64-unknown-linux-gnu` target.
174# download-ci-gcc = false
175
176# =============================================================================
177# General build configuration options
178# =============================================================================
179[build]
180
181# The default stage to use for the `check` subcommand
182#check-stage = 0
183
184# The default stage to use for the `doc` subcommand
185#doc-stage = 0
186
187# The default stage to use for the `build` subcommand
188#build-stage = 1
189
190# The default stage to use for the `test` subcommand
191#test-stage = 1
192
193# The default stage to use for the `dist` subcommand
194#dist-stage = 2
195
196# The default stage to use for the `install` subcommand
197#install-stage = 2
198
199# The default stage to use for the `bench` subcommand
200#bench-stage = 2
201
202# A descriptive string to be appended to version output (e.g., `rustc --version`),
203# which is also used in places like debuginfo `DW_AT_producer`. This may be useful for
204# supplementary build information, like distro-specific package versions.
205#
206# The Rust compiler will differentiate between versions of itself, including
207# based on this string, which means that if you wish to be compatible with
208# upstream Rust you need to set this to "". However, note that if you set this to "" but
209# are not actually compatible -- for example if you've backported patches that change
210# behavior -- this may lead to miscompilations or other bugs.
211#description = ""
212
213# Build triple for the pre-compiled snapshot compiler. If `rustc` is set, this must match its host
214# triple (see `rustc --version --verbose`; cross-compiling the rust build system itself is NOT
215# supported). If `rustc` is unset, this must be a platform with pre-compiled host tools
216# (https://doc.rust-lang.org/nightly/rustc/platform-support.html). The current platform must be
217# able to run binaries of this build triple.
218#
219# If `rustc` is present in path, this defaults to the host it was compiled for.
220# Otherwise, `x.py` will try to infer it from the output of `uname`.
221# If `uname` is not found in PATH, we assume this is `x86_64-pc-windows-msvc`.
222# This may be changed in the future.
223#build = "x86_64-unknown-linux-gnu" (as an example)
224
225# Which triples to produce a compiler toolchain for. Each of these triples will be bootstrapped from
226# the build triple themselves. In other words, this is the list of triples for which to build a
227# compiler that can RUN on that triple.
228#
229# Defaults to just the `build` triple.
230#host = [build.build] (list of triples)
231
232# Which triples to build libraries (core/alloc/std/test/proc_macro) for. Each of these triples will
233# be bootstrapped from the build triple themselves. In other words, this is the list of triples for
234# which to build a library that can CROSS-COMPILE to that triple.
235#
236# Defaults to `host`. If you set this explicitly, you likely want to add all
237# host triples to this list as well in order for those host toolchains to be
238# able to compile programs for their native target.
239#target = build.host (list of triples)
240
241# Use this directory to store build artifacts. Paths are relative to the current directory, not to
242# the root of the repository.
243#build-dir = "build"
244
245# Instead of downloading the src/stage0 version of Cargo specified, use
246# this Cargo binary instead to build all Rust code
247# If you set this, you likely want to set `rustc` as well.
248#cargo = "/path/to/cargo"
249
250# Instead of downloading the src/stage0 version of the compiler
251# specified, use this rustc binary instead as the stage0 snapshot compiler.
252# If you set this, you likely want to set `cargo` as well.
253#rustc = "/path/to/rustc"
254
255# Instead of downloading the src/stage0 version of rustfmt specified,
256# use this rustfmt binary instead as the stage0 snapshot rustfmt.
257#rustfmt = "/path/to/rustfmt"
258
259# Instead of downloading the src/stage0 version of cargo-clippy specified,
260# use this cargo-clippy binary instead as the stage0 snapshot cargo-clippy.
261#
262# Note that this option should be used with the same toolchain as the `rustc` option above.
263# Otherwise, clippy is likely to fail due to a toolchain conflict.
264#cargo-clippy = "/path/to/cargo-clippy"
265
266# Whether to build documentation by default. If false, rustdoc and
267# friends will still be compiled but they will not be used to generate any
268# documentation.
269#
270# You can still build documentation when this is disabled by explicitly passing paths,
271# e.g. `x doc library`.
272#docs = true
273
274# Flag to specify whether CSS, JavaScript, and HTML are minified when
275# docs are generated. JSON is always minified, because it's enormous,
276# and generated in already-minified form from the beginning.
277#docs-minification = true
278
279# Flag to specify whether private items should be included in the library docs.
280#library-docs-private-items = false
281
282# Indicate whether to build compiler documentation by default.
283# You can still build documentation when this is disabled by explicitly passing a path: `x doc compiler`.
284#compiler-docs = false
285
286# Indicate whether git submodules are managed and updated automatically.
287#submodules = true
288
289# The path to (or name of) the GDB executable to use. This is only used for
290# executing the debuginfo test suite.
291#gdb = "gdb"
292
293# The path to (or name of) the LLDB executable to use. This is only used for
294# executing the debuginfo test suite.
295#lldb = "lldb"
296
297# The node.js executable to use. Note that this is only used for the emscripten
298# target when running tests, otherwise this can be omitted.
299#nodejs = "node"
300
301# The npm executable to use. Note that this is used for rustdoc-gui tests,
302# otherwise this can be omitted.
303#
304# Under Windows this should be `npm.cmd` or path to it (verified on nodejs v18.06), or
305# error will be emitted.
306#npm = "npm"
307
308# Python interpreter to use for various tasks throughout the build, notably
309# rustdoc tests, the lldb python interpreter, and some dist bits and pieces.
310#
311# Defaults to the Python interpreter used to execute x.py.
312#python = "python"
313
314# The path to the REUSE executable to use. Note that REUSE is not required in
315# most cases, as our tooling relies on a cached (and shrunk) copy of the
316# REUSE output present in the git repository and in our source tarballs.
317#
318# REUSE is only needed if your changes caused the overall licensing of the
319# repository to change, and the cached copy has to be regenerated.
320#
321# Defaults to the "reuse" command in the system path.
322#reuse = "reuse"
323
324# Force Cargo to check that Cargo.lock describes the precise dependency
325# set that all the Cargo.toml files create, instead of updating it.
326#locked-deps = false
327
328# Indicate whether the vendored sources are used for Rust dependencies or not.
329#
330# Vendoring requires additional setup. We recommend using the pre-generated source tarballs if you
331# want to use vendoring. See https://forge.rust-lang.org/infra/other-installation-methods.html#source-code.
332#vendor = if "is a tarball source" && "vendor" dir exists && ".cargo/config.toml" file exists { true } else { false }
333
334# Typically the build system will build the Rust compiler twice. The second
335# compiler, however, will simply use its own libraries to link against. If you
336# would rather to perform a full bootstrap, compiling the compiler three times,
337# then you can set this option to true.
338#
339# This is only useful for verifying that rustc generates reproducible builds.
340#full-bootstrap = false
341
342# Set the bootstrap/download cache path. It is useful when building rust
343# repeatedly in a CI environment.
344#bootstrap-cache-path = /path/to/shared/cache
345
346# Enable a build of the extended Rust tool set which is not only the compiler
347# but also tools such as Cargo. This will also produce "combined installers"
348# which are used to install Rust and Cargo together.
349# The `tools` (check `bootstrap.example.toml` to see its default value) option specifies
350# which tools should be built if `extended = true`.
351#
352# This is disabled by default.
353#extended = false
354
355# Set of tools to be included in the installation.
356#
357# If `extended = false`, the only one of these built by default is rustdoc.
358#
359# If `extended = true`, they are all included.
360#
361# If any enabled tool fails to build, the installation fails.
362#tools = [
363# "cargo",
364# "clippy",
365# "rustdoc",
366# "rustfmt",
367# "rust-analyzer",
368# "rust-analyzer-proc-macro-srv",
369# "analysis",
370# "src",
371# "wasm-component-ld",
372# "miri", "cargo-miri" # for dev/nightly channels
373#]
374
375# Verbosity level: 0 == not verbose, 1 == verbose, 2 == very verbose, 3 == print environment variables on each rustc invocation
376#verbose = 0
377
378# Build the sanitizer runtimes
379#sanitizers = false
380
381# Build the profiler runtime (required when compiling with options that depend
382# on this runtime, such as `-C profile-generate` or `-C instrument-coverage`).
383#profiler = false
384
385# Use the optimized LLVM C intrinsics for `compiler_builtins`, rather than Rust intrinsics.
386# Requires the LLVM submodule to be managed by bootstrap (i.e. not external) so that `compiler-rt`
387# sources are available.
388#
389# Setting this to `false` generates slower code, but removes the requirement for a C toolchain in
390# order to run `x check`.
391#optimized-compiler-builtins = if rust.channel == "dev" { false } else { true }
392
393# Indicates whether the native libraries linked into Cargo will be statically
394# linked or not.
395#cargo-native-static = false
396
397# Run the build with low priority, by setting the process group's "nice" value
398# to +10 on Unix platforms, and by using a "low priority" job object on Windows.
399#low-priority = false
400
401# Arguments passed to the `./configure` script, used during distcheck. You
402# probably won't fill this in but rather it's filled in by the `./configure`
403# script. Useful for debugging.
404#configure-args = []
405
406# Indicates that a local rebuild is occurring instead of a full bootstrap,
407# essentially skipping stage0 as the local compiler is recompiling itself again.
408# Useful for modifying only the stage2 compiler without having to pass `--keep-stage 0` each time.
409#local-rebuild = false
410
411# Print out how long each bootstrap step took (mostly intended for CI and
412# tracking over time)
413#print-step-timings = false
414
415# Print out resource usage data for each bootstrap step, as defined by the Unix
416# struct rusage. (Note that this setting is completely unstable: the data it
417# captures, what platforms it supports, the format of its associated output, and
418# this setting's very existence, are all subject to change.)
419#print-step-rusage = false
420
421# Always patch binaries for usage with Nix toolchains. If `true` then binaries
422# will be patched unconditionally. If `false` or unset, binaries will be patched
423# only if the current distribution is NixOS. This option is useful when using
424# a Nix toolchain on non-NixOS distributions.
425#patch-binaries-for-nix = false
426
427# Collect information and statistics about the current build, and write it to
428# disk. Enabling this has no impact on the resulting build output. The
429# schema of the file generated by the build metrics feature is unstable, and
430# this is not intended to be used during local development.
431#metrics = false
432
433# Specify the location of the Android NDK. Used when targeting Android.
434#android-ndk = "/path/to/android-ndk-r26d"
435
436# Number of parallel jobs to be used for building and testing. If set to `0` or
437# omitted, it will be automatically determined. This is the `-j`/`--jobs` flag
438# passed to cargo invocations.
439#jobs = 0
440
441# What custom diff tool to use for displaying compiletest tests.
442#compiletest-diff-tool = <none>
443
444# Indicates whether ccache is used when building certain artifacts (e.g. LLVM).
445# Set to `true` to use the first `ccache` in PATH, or set an absolute path to use
446# a specific version.
447#ccache = false
448
449# List of paths to exclude from the build and test processes.
450# For example, exclude = ["tests/ui", "src/tools/tidy"].
451#exclude = []
452
453# =============================================================================
454# General install configuration options
455# =============================================================================
456[install]
457
458# Where to install the generated toolchain. Must be an absolute path.
459#prefix = "/usr/local"
460
461# Where to install system configuration files.
462# If this is a relative path, it will get installed in `prefix` above
463#sysconfdir = "/etc"
464
465# Where to install documentation in `prefix` above
466#docdir = "share/doc/rust"
467
468# Where to install binaries in `prefix` above
469#bindir = "bin"
470
471# Where to install libraries in `prefix` above
472#libdir = "lib"
473
474# Where to install man pages in `prefix` above
475#mandir = "share/man"
476
477# Where to install data in `prefix` above
478#datadir = "share"
479
480# =============================================================================
481# Options for compiling Rust code itself
482# =============================================================================
483[rust]
484
485# Whether or not to optimize when compiling the compiler and standard library,
486# and what level of optimization to use.
487# WARNING: Building with optimize = false is NOT SUPPORTED. Due to bootstrapping,
488# building without optimizations takes much longer than optimizing. Further, some platforms
489# fail to build without this optimization (c.f. #65352).
490# The valid options are:
491# true - Enable optimizations.
492# false - Disable optimizations.
493# 0 - Disable optimizations.
494# 1 - Basic optimizations.
495# 2 - Some optimizations.
496# 3 - All optimizations.
497# "s" - Optimize for binary size.
498# "z" - Optimize for binary size, but also turn off loop vectorization.
499#optimize = true
500
501# Indicates that the build should be configured for debugging Rust. A
502# `debug`-enabled compiler and standard library will be somewhat
503# slower (due to e.g. checking of debug assertions) but should remain
504# usable.
505#
506# Note: If this value is set to `true`, it will affect a number of
507# configuration options below as well, if they have been left
508# unconfigured in this file.
509#
510# Note: changes to the `debug` setting do *not* affect `optimize`
511# above. In theory, a "maximally debuggable" environment would
512# set `optimize` to `false` above to assist the introspection
513# facilities of debuggers like lldb and gdb. To recreate such an
514# environment, explicitly set `optimize` to `false` and `debug`
515# to `true`. In practice, everyone leaves `optimize` set to
516# `true`, because an unoptimized rustc with debugging
517# enabled becomes *unusably slow* (e.g. rust-lang/rust#24840
518# reported a 25x slowdown) and bootstrapping the supposed
519# "maximally debuggable" environment (notably libstd) takes
520# hours to build.
521#
522#debug = false
523
524# Whether to download the stage 1 and 2 compilers from CI. This is useful if you
525# are working on tools, doc-comments, or library (you will be able to build the
526# standard library without needing to build the compiler).
527#
528# Set this to "if-unchanged" if you are working on `src/tools`, `tests` or
529# `library` (on CI, `library` changes triggers in-tree compiler build) to speed
530# up the build process if you don't need to build a compiler from the latest
531# commit from `master`.
532#
533# Set this to `true` to always download or `false` to always use the in-tree
534# compiler.
535#download-rustc = false
536
537# Number of codegen units to use for each compiler invocation. A value of 0
538# means "the number of cores on this machine", and 1+ is passed through to the
539# compiler.
540#
541# Uses the rustc defaults: https://doc.rust-lang.org/rustc/codegen-options/index.html#codegen-units
542#codegen-units = if incremental { 256 } else { 16 }
543
544# Sets the number of codegen units to build the standard library with,
545# regardless of what the codegen-unit setting for the rest of the compiler is.
546# NOTE: building with anything other than 1 is known to occasionally have bugs.
547#codegen-units-std = codegen-units
548
549# Whether or not debug assertions are enabled for the compiler and standard library.
550# These can help find bugs at the cost of a small runtime slowdown.
551#
552# Defaults to rust.debug value
553#debug-assertions = rust.debug (boolean)
554
555# Whether or not debug assertions are enabled for the standard library.
556# Overrides the `debug-assertions` option, if defined.
557#
558# Defaults to rust.debug-assertions value
559#debug-assertions-std = rust.debug-assertions (boolean)
560
561# Whether or not to leave debug! and trace! calls in the rust binary.
562#
563# Defaults to rust.debug-assertions value
564#
565# If you see a message from `tracing` saying "some trace filter directives would enable traces that
566# are disabled statically" because `max_level_info` is enabled, set this value to `true`.
567#debug-logging = rust.debug-assertions (boolean)
568
569# Whether or not to build rustc, tools and the libraries with randomized type layout
570#randomize-layout = false
571
572# Whether or not overflow checks are enabled for the compiler and standard
573# library.
574#
575# Defaults to rust.debug value
576#overflow-checks = rust.debug (boolean)
577
578# Whether or not overflow checks are enabled for the standard library.
579# Overrides the `overflow-checks` option, if defined.
580#
581# Defaults to rust.overflow-checks value
582#overflow-checks-std = rust.overflow-checks (boolean)
583
584# Debuginfo level for most of Rust code, corresponds to the `-C debuginfo=N` option of `rustc`.
585# See https://doc.rust-lang.org/rustc/codegen-options/index.html#debuginfo for available options.
586#
587# Can be overridden for specific subsets of Rust code (rustc, std or tools).
588# Debuginfo for tests run with compiletest is not controlled by this option
589# and needs to be enabled separately with `debuginfo-level-tests`.
590#
591# Note that debuginfo-level = 2 generates several gigabytes of debuginfo
592# and will slow down the linking process significantly.
593#debuginfo-level = if rust.debug { 1 } else { 0 }
594
595# Debuginfo level for the compiler.
596#debuginfo-level-rustc = rust.debuginfo-level
597
598# Debuginfo level for the standard library.
599#debuginfo-level-std = rust.debuginfo-level
600
601# Debuginfo level for the tools.
602#debuginfo-level-tools = rust.debuginfo-level
603
604# Debuginfo level for the test suites run with compiletest.
605# FIXME(#61117): Some tests fail when this option is enabled.
606#debuginfo-level-tests = 0
607
608# Should rustc and the standard library be built with split debuginfo? Default
609# is platform dependent.
610#
611# This field is deprecated, use `target.<triple>.split-debuginfo` instead.
612#
613# The value specified here is only used when targeting the `build.build` triple,
614# and is overridden by `target.<triple>.split-debuginfo` if specified.
615#
616#split-debuginfo = see target.<triple>.split-debuginfo
617
618# Whether or not `panic!`s generate backtraces (RUST_BACKTRACE)
619#backtrace = true
620
621# Whether to always use incremental compilation when building rustc
622#incremental = false
623
624# The default linker that will be hard-coded into the generated
625# compiler for targets that don't specify a default linker explicitly
626# in their target specifications. Note that this is not the linker
627# used to link said compiler. It can also be set per-target (via the
628# `[target.<triple>]` block), which may be useful in a cross-compilation
629# setting.
630#
631# See https://doc.rust-lang.org/rustc/codegen-options/index.html#linker for more information.
632#default-linker = <none> (path)
633
634# The "channel" for the Rust build to produce. The stable/beta channels only
635# allow using stable features, whereas the nightly and dev channels allow using
636# nightly features.
637#
638# You can set the channel to "auto-detect" to load the channel name from `src/ci/channel`.
639#
640# If using tarball sources, default value is "auto-detect", otherwise, it's "dev".
641#channel = if "is a tarball source" { "auto-detect" } else { "dev" }
642
643# The root location of the musl installation directory. The library directory
644# will also need to contain libunwind.a for an unwinding implementation. Note
645# that this option only makes sense for musl targets that produce statically
646# linked binaries.
647#
648# Defaults to /usr on musl hosts. Has no default otherwise.
649#musl-root = <platform specific> (path)
650
651# By default the `rustc` executable is built with `-Wl,-rpath` flags on Unix
652# platforms to ensure that the compiler is usable by default from the build
653# directory (as it links to a number of dynamic libraries). This may not be
654# desired in distributions, for example.
655#rpath = true
656
657# Indicates whether symbols should be stripped using `-Cstrip=symbols`.
658#strip = false
659
660# Forces frame pointers to be used with `-Cforce-frame-pointers`.
661# This can be helpful for profiling at a small performance cost.
662#frame-pointers = false
663
664# Indicates whether stack protectors should be used
665# via the unstable option `-Zstack-protector`.
666#
667# Valid options are : `none`(default),`basic`,`strong`, or `all`.
668# `strong` and `basic` options may be buggy and are not recommended, see rust-lang/rust#114903.
669#stack-protector = "none"
670
671# Prints each test name as it is executed, to help debug issues in the test harness itself.
672#verbose-tests = if is_verbose { true } else { false }
673
674# Flag indicating whether tests are compiled with optimizations (the -O flag).
675#optimize-tests = true
676
677# Flag indicating whether codegen tests will be run or not. If you get an error
678# saying that the FileCheck executable is missing, you may want to disable this.
679# Also see the target's llvm-filecheck option.
680#codegen-tests = true
681
682# Flag indicating whether git info will be retrieved from .git automatically.
683# Having the git information can cause a lot of rebuilds during development.
684#omit-git-hash = if rust.channel == "dev" { true } else { false }
685
686# Whether to create a source tarball by default when running `x dist`.
687#
688# You can still build a source tarball when this is disabled by explicitly passing `x dist rustc-src`.
689#dist-src = true
690
691# After building or testing an optional component (e.g. the nomicon or reference), append the
692# result (broken, compiling, testing) into this JSON file.
693#save-toolstates = <none> (path)
694
695# This is an array of the codegen backends that will be compiled for the rustc
696# that's being compiled. The default is to only build the LLVM codegen backend,
697# and currently the only standard options supported are `"llvm"`, `"cranelift"`
698# and `"gcc"`. The first backend in this list will be used as default by rustc
699# when no explicit backend is specified.
700#codegen-backends = ["llvm"]
701
702# Indicates whether LLD will be compiled and made available in the sysroot for rustc to execute, and
703# whether to set it as rustc's default linker on `x86_64-unknown-linux-gnu`. This will also only be
704# when *not* building an external LLVM (so only when using `download-ci-llvm` or building LLVM from
705# the in-tree source): setting `llvm-config` in the `[target.x86_64-unknown-linux-gnu]` section will
706# make this default to false.
707#lld = false in all cases, except on `x86_64-unknown-linux-gnu` as described above, where it is true
708
709# Indicates whether LLD will be used to link Rust crates during bootstrap on
710# supported platforms.
711# If set to `true` or `"external"`, a global `lld` binary that has to be in $PATH
712# will be used.
713# If set to `"self-contained"`, rust-lld from the snapshot compiler will be used.
714#
715# On MSVC, LLD will not be used if we're cross linking.
716#
717# Explicitly setting the linker for a target will override this option when targeting MSVC.
718#use-lld = false
719
720# Indicates whether some LLVM tools, like llvm-objdump, will be made available in the
721# sysroot.
722#llvm-tools = true
723
724# Indicates whether the `self-contained` llvm-bitcode-linker, will be made available
725# in the sysroot. It is required for running nvptx tests.
726#llvm-bitcode-linker = false
727
728# Whether to deny warnings in crates
729#deny-warnings = true
730
731# Print backtrace on internal compiler errors during bootstrap
732#backtrace-on-ice = false
733
734# Whether to verify generated LLVM IR
735#verify-llvm-ir = false
736
737# Compile the compiler with a non-default ThinLTO import limit. This import
738# limit controls the maximum size of functions imported by ThinLTO. Decreasing
739# will make code compile faster at the expense of lower runtime performance.
740#thin-lto-import-instr-limit = if incremental { 10 } else { LLVM default (currently 100) }
741
742# Map debuginfo paths to `/rust/$sha/...`.
743# Useful for reproducible builds. Generally only set for releases
744#remap-debuginfo = false
745
746# Link the compiler and LLVM against `jemalloc` instead of the default libc allocator.
747# This option is only tested on Linux and OSX. It can also be configured per-target in the
748# [target.<tuple>] section.
749#jemalloc = false
750
751# Run tests in various test suites with the "nll compare mode" in addition to
752# running the tests in normal mode. Largely only used on CI and during local
753# development of NLL
754#test-compare-mode = false
755
756# Global default for llvm-libunwind for all targets. See the target-specific
757# documentation for llvm-libunwind below. Note that the target-specific
758# option will override this if set.
759#llvm-libunwind = 'no'
760
761# Enable Windows Control Flow Guard checks in the standard library.
762# This only applies from stage 1 onwards, and only for Windows targets.
763#control-flow-guard = false
764
765# Enable Windows EHCont Guard checks in the standard library.
766# This only applies from stage 1 onwards, and only for Windows targets.
767#ehcont-guard = false
768
769# Enable symbol-mangling-version v0. This can be helpful when profiling rustc,
770# as generics will be preserved in symbols (rather than erased into opaque T).
771# When no setting is given, the new scheme will be used when compiling the
772# compiler and its tools and the legacy scheme will be used when compiling the
773# standard library.
774# If an explicit setting is given, it will be used for all parts of the codebase.
775#new-symbol-mangling = true|false (see comment)
776
777# Select LTO mode that will be used for compiling rustc. By default, thin local LTO
778# (LTO within a single crate) is used (like for any Rust crate). You can also select
779# "thin" or "fat" to apply Thin/Fat LTO to the `rustc_driver` dylib, or "off" to disable
780# LTO entirely.
781#lto = "thin-local"
782
783# Build compiler with the optimization enabled and -Zvalidate-mir, currently only for `std`
784#validate-mir-opts = 3
785
786# Configure `std` features used during bootstrap.
787#
788# Default features will be expanded in the following cases:
789# - If `rust.llvm-libunwind` or `target.llvm-libunwind` is enabled:
790# - "llvm-libunwind" will be added for in-tree LLVM builds.
791# - "system-llvm-libunwind" will be added for system LLVM builds.
792# - If `rust.backtrace` is enabled, "backtrace" will be added.
793# - If `rust.profiler` or `target.profiler` is enabled, "profiler" will be added.
794# - If building for a zkvm target, "compiler-builtins-mem" will be added.
795#
796# Since libstd also builds libcore and liballoc as dependencies and all their features are mirrored
797# as libstd features, this option can also be used to configure features such as optimize_for_size.
798#std-features = ["panic_unwind"]
799
800# =============================================================================
801# Options for specific targets
802#
803# Each of the following options is scoped to the specific target triple in
804# question and is used for determining how to compile each target.
805# =============================================================================
806[target.x86_64-unknown-linux-gnu]
807
808# C compiler to be used to compile C code. Note that the
809# default value is platform specific, and if not specified it may also depend on
810# what platform is crossing to what platform.
811# See `src/bootstrap/src/utils/cc_detect.rs` for details.
812#cc = "cc" (path)
813
814# C++ compiler to be used to compile C++ code (e.g. LLVM and our LLVM shims).
815# This is only used for host targets.
816# See `src/bootstrap/src/utils/cc_detect.rs` for details.
817#cxx = "c++" (path)
818
819# Archiver to be used to assemble static libraries compiled from C/C++ code.
820# Note: an absolute path should be used, otherwise LLVM build will break.
821#ar = "ar" (path)
822
823# Ranlib to be used to assemble static libraries compiled from C/C++ code.
824# Note: an absolute path should be used, otherwise LLVM build will break.
825#ranlib = "ranlib" (path)
826
827# Linker to be used to bootstrap Rust code. Note that the
828# default value is platform specific, and if not specified it may also depend on
829# what platform is crossing to what platform.
830# Setting this will override the `use-lld` option for Rust code when targeting MSVC.
831#linker = "cc" (path)
832
833# Should rustc and the standard library be built with split debuginfo? Default
834# is platform dependent.
835#
836# Valid values are the same as those accepted by `-C split-debuginfo`
837# (`off`/`unpacked`/`packed`).
838#
839# On Linux, split debuginfo is disabled by default.
840#
841# On Apple platforms, unpacked split debuginfo is used by default. Unpacked
842# debuginfo does not run `dsymutil`, which packages debuginfo from disparate
843# object files into a single `.dSYM` file. `dsymutil` adds time to builds for
844# no clear benefit, and also makes it more difficult for debuggers to find
845# debug info. The compiler currently defaults to running `dsymutil` to preserve
846# its historical default, but when compiling the compiler itself, we skip it by
847# default since we know it's safe to do so in that case.
848#
849# On Windows platforms, packed debuginfo is the only supported option,
850# producing a `.pdb` file.
851#split-debuginfo = if linux { off } else if windows { packed } else if apple { unpacked }
852
853# Path to the `llvm-config` binary of the installation of a custom LLVM to link
854# against. Note that if this is specified we don't compile LLVM at all for this
855# target.
856#llvm-config = <none> (path)
857
858# Override detection of whether this is a Rust-patched LLVM. This would be used
859# in conjunction with either an llvm-config or build.submodules = false.
860#llvm-has-rust-patches = if llvm-config { false } else { true }
861
862# Normally the build system can find LLVM's FileCheck utility, but if
863# not, you can specify an explicit file name for it.
864#llvm-filecheck = "/path/to/llvm-version/bin/FileCheck"
865
866# Use LLVM libunwind as the implementation for Rust's unwinder.
867# Accepted values are 'in-tree' (formerly true), 'system' or 'no' (formerly false).
868# This option only applies for Linux and Fuchsia targets.
869# On Linux target, if crt-static is not enabled, 'no' means dynamic link to
870# `libgcc_s.so`, 'in-tree' means static link to the in-tree build of llvm libunwind
871# and 'system' means dynamic link to `libunwind.so`. If crt-static is enabled,
872# the behavior is depend on the libc. On musl target, 'no' and 'in-tree' both
873# means static link to the in-tree build of llvm libunwind, and 'system' means
874# static link to `libunwind.a` provided by system. Due to the limitation of glibc,
875# it must link to `libgcc_eh.a` to get a working output, and this option have no effect.
876#llvm-libunwind = 'no' if Linux, 'in-tree' if Fuchsia
877
878# Build the sanitizer runtimes for this target.
879# This option will override the same option under [build] section.
880#sanitizers = build.sanitizers (bool)
881
882# When true, build the profiler runtime for this target (required when compiling
883# with options that depend on this runtime, such as `-C profile-generate` or
884# `-C instrument-coverage`). This may also be given a path to an existing build
885# of the profiling runtime library from LLVM's compiler-rt.
886# This option will override the same option under [build] section.
887#profiler = build.profiler (bool)
888
889# This option supports enable `rpath` in each target independently,
890# and will override the same option under [rust] section. It only works on Unix platforms
891#rpath = rust.rpath (bool)
892
893# Force static or dynamic linkage of the standard library for this target. If
894# this target is a host for rustc, this will also affect the linkage of the
895# compiler itself. This is useful for building rustc on targets that normally
896# only use static libraries. If unset, the target's default linkage is used.
897#crt-static = <platform-specific> (bool)
898
899# The root location of the musl installation directory. The library directory
900# will also need to contain libunwind.a for an unwinding implementation. Note
901# that this option only makes sense for musl targets that produce statically
902# linked binaries.
903#musl-root = build.musl-root (path)
904
905# The full path to the musl libdir.
906#musl-libdir = musl-root/lib
907
908# The root location of the `wasm32-wasip1` sysroot. Only used for WASI
909# related targets. Make sure to create a `[target.wasm32-wasip1]`
910# section and move this field there (or equivalent for the target being built).
911#wasi-root = <none> (path)
912
913# Used in testing for configuring where the QEMU images are located, you
914# probably don't want to use this.
915#qemu-rootfs = <none> (path)
916
917# Skip building the `std` library for this target. Enabled by default for
918# target triples containing `-none`, `nvptx`, `switch`, or `-uefi`.
919#no-std = <platform-specific> (bool)
920
921# This is an array of the codegen backends that will be
922# compiled for this target, overriding the global rust.codegen-backends option.
923# See that option for more info.
924#codegen-backends = rust.codegen-backends (array)
925
926# This is a "runner" to pass to `compiletest` when executing tests. Tests will
927# execute this tool where the binary-to-test is passed as an argument. Can
928# be useful for situations such as when WebAssembly is being tested and a
929# runtime needs to be configured. This value is similar to
930# Cargo's `CARGO_$target_RUNNER` configuration.
931#
932# This configuration is a space-separated list of arguments so `foo bar` would
933# execute the program `foo` with the first argument as `bar` and the second
934# argument as the test binary.
935#runner = <none> (string)
936
937# Use the optimized LLVM C intrinsics for `compiler_builtins`, rather than Rust intrinsics
938# on this target.
939# Requires the LLVM submodule to be managed by bootstrap (i.e. not external) so that `compiler-rt`
940# sources are available.
941#
942# Setting this to `false` generates slower code, but removes the requirement for a C toolchain in
943# order to run `x check`.
944#optimized-compiler-builtins = build.optimized-compiler-builtins (bool)
945
946# Link the compiler and LLVM against `jemalloc` instead of the default libc allocator.
947# This overrides the global `rust.jemalloc` option. See that option for more info.
948#jemalloc = rust.jemalloc (bool)
949
950# =============================================================================
951# Distribution options
952#
953# These options are related to distribution, mostly for the Rust project itself.
954# You probably won't need to concern yourself with any of these options
955# =============================================================================
956[dist]
957
958# This is the folder of artifacts that the build system will sign. All files in
959# this directory will be signed with the default gpg key using the system `gpg`
960# binary. The `asc` and `sha256` files will all be output into the standard dist
961# output folder (currently `build/dist`)
962#
963# This folder should be populated ahead of time before the build system is
964# invoked.
965#sign-folder = <none> (path)
966
967# The remote address that all artifacts will eventually be uploaded to. The
968# build system generates manifests which will point to these urls, and for the
969# manifests to be correct they'll have to have the right URLs encoded.
970#
971# Note that this address should not contain a trailing slash as file names will
972# be appended to it.
973#upload-addr = <none> (URL)
974
975# Whether to build a plain source tarball to upload
976# We disable that on Windows not to override the one already uploaded on S3
977# as the one built on Windows will contain backslashes in paths causing problems
978# on linux
979#src-tarball = true
980
981# List of compression formats to use when generating dist tarballs. The list of
982# formats is provided to rust-installer, which must support all of them.
983#
984# This list must be non-empty.
985#compression-formats = ["gz", "xz"]
986
987# How much time should be spent compressing the tarballs. The better the
988# compression profile, the longer compression will take.
989#
990# Available options: fast, balanced, best
991#compression-profile = "fast"
992
993# Copy the linker, DLLs, and various libraries from MinGW into the Rust toolchain.
994# Only applies when the host or target is pc-windows-gnu.
995#include-mingw-linker = true
996
997# Whether to vendor dependencies for the dist tarball.
998#vendor = if "is a tarball source" || "is a git repository" { true } else { false }
compiler/rustc_session/src/options.rs+1-1
......@@ -389,7 +389,7 @@ top_level_options!(
389389 ///
390390 /// This directory is what the virtual `/rustc/$hash` is translated back to,
391391 /// if Rust was built with path remapping to `/rustc/$hash` enabled
392 /// (the `rust.remap-debuginfo` option in `config.toml`).
392 /// (the `rust.remap-debuginfo` option in `bootstrap.toml`).
393393 real_rust_source_base_dir: Option<PathBuf> [TRACKED_NO_CRATE_HASH],
394394
395395 edition: Edition [TRACKED],
config.example.toml deleted-998
......@@ -1,998 +0,0 @@
1# Sample TOML configuration file for building Rust.
2#
3# To configure bootstrap, run `./configure` or `./x.py setup`.
4# See https://rustc-dev-guide.rust-lang.org/building/how-to-build-and-run.html#create-a-configtoml for more information.
5#
6# All options are commented out by default in this file, and they're commented
7# out with their default values. The build system by default looks for
8# `config.toml` in the current directory of a build for build configuration, but
9# a custom configuration file can also be specified with `--config` to the build
10# system.
11
12# =============================================================================
13# Global Settings
14# =============================================================================
15
16# Use different pre-set defaults than the global defaults.
17#
18# See `src/bootstrap/defaults` for more information.
19# Note that this has no default value (x.py uses the defaults in `config.example.toml`).
20#profile = <none>
21
22# Keeps track of major changes made to this configuration.
23#
24# This value also represents ID of the PR that caused major changes. Meaning,
25# you can visit github.com/rust-lang/rust/pull/{change-id} to check for more details.
26#
27# A 'major change' includes any of the following
28# - A new option
29# - A change in the default values
30#
31# If `change-id` does not match the version that is currently running,
32# `x.py` will inform you about the changes made on bootstrap.
33#change-id = <latest change id in src/bootstrap/src/utils/change_tracker.rs>
34
35# =============================================================================
36# Tweaking how LLVM is compiled
37# =============================================================================
38[llvm]
39
40# Whether to use Rust CI built LLVM instead of locally building it.
41#
42# Unless you're developing for a target where Rust CI doesn't build a compiler
43# toolchain or changing LLVM locally, you probably want to leave this enabled.
44#
45# Set this to `true` to download if CI llvm available otherwise it builds
46# from `src/llvm-project`.
47#
48# Set this to `"if-unchanged"` to download only if the llvm-project has not
49# been modified. You can also use this if you are unsure whether you're on a
50# tier 1 target. All tier 1 targets are currently supported.
51
52# Currently, we only support this when building LLVM for the build triple.
53#
54# Note that many of the LLVM options are not currently supported for
55# downloading. Currently only the "assertions" option can be toggled.
56#download-ci-llvm = true
57
58# Indicates whether the LLVM build is a Release or Debug build
59#optimize = true
60
61# Indicates whether LLVM should be built with ThinLTO. Note that this will
62# only succeed if you use clang, lld, llvm-ar, and llvm-ranlib in your C/C++
63# toolchain (see the `cc`, `cxx`, `linker`, `ar`, and `ranlib` options below).
64# More info at: https://clang.llvm.org/docs/ThinLTO.html#clang-bootstrap
65#thin-lto = false
66
67# Indicates whether an LLVM Release build should include debug info
68#release-debuginfo = false
69
70# Indicates whether the LLVM assertions are enabled or not
71# NOTE: When assertions are disabled, bugs in the integration between rustc and LLVM can lead to
72# unsoundness (segfaults, etc.) in the rustc process itself, not just in the generated code.
73#assertions = false
74
75# Indicates whether the LLVM testsuite is enabled in the build or not. Does
76# not execute the tests as part of the build as part of x.py build et al,
77# just makes it possible to do `ninja check-llvm` in the staged LLVM build
78# directory when doing LLVM development as part of Rust development.
79#tests = false
80
81# Indicates whether the LLVM plugin is enabled or not
82#plugins = false
83
84# Whether to build Enzyme as AutoDiff backend.
85#enzyme = false
86
87# Whether to build LLVM with support for it's gpu offload runtime.
88#offload = false
89
90# When true, link libstdc++ statically into the rustc_llvm.
91# This is useful if you don't want to use the dynamic version of that
92# library provided by LLVM.
93#static-libstdcpp = false
94
95# Enable LLVM to use zstd for compression.
96#libzstd = false
97
98# Whether to use Ninja to build LLVM. This runs much faster than make.
99#ninja = true
100
101# LLVM targets to build support for.
102# Note: this is NOT related to Rust compilation targets. However, as Rust is
103# dependent on LLVM for code generation, turning targets off here WILL lead to
104# the resulting rustc being unable to compile for the disabled architectures.
105#
106# To add support for new targets, see https://rustc-dev-guide.rust-lang.org/building/new-target.html.
107#targets = "AArch64;AMDGPU;ARM;BPF;Hexagon;LoongArch;MSP430;Mips;NVPTX;PowerPC;RISCV;Sparc;SystemZ;WebAssembly;X86"
108
109# LLVM experimental targets to build support for. These targets are specified in
110# the same format as above, but since these targets are experimental, they are
111# not built by default and the experimental Rust compilation targets that depend
112# on them will not work unless the user opts in to building them.
113#experimental-targets = "AVR;M68k;CSKY"
114
115# Cap the number of parallel linker invocations when compiling LLVM.
116# This can be useful when building LLVM with debug info, which significantly
117# increases the size of binaries and consequently the memory required by
118# each linker process.
119# If set to 0, linker invocations are treated like any other job and
120# controlled by bootstrap's -j parameter.
121#link-jobs = 0
122
123# Whether to build LLVM as a dynamically linked library (as opposed to statically linked).
124# Under the hood, this passes `--shared` to llvm-config.
125# NOTE: To avoid performing LTO multiple times, we suggest setting this to `true` when `thin-lto` is enabled.
126#link-shared = llvm.thin-lto
127
128# When building llvm, this configures what is being appended to the version.
129# To use LLVM version as is, provide an empty string.
130#version-suffix = if rust.channel == "dev" { "-rust-dev" } else { "-rust-$version-$channel" }
131
132# On MSVC you can compile LLVM with clang-cl, but the test suite doesn't pass
133# with clang-cl, so this is special in that it only compiles LLVM with clang-cl.
134# Note that this takes a /path/to/clang-cl, not a boolean.
135#clang-cl = cc
136
137# Pass extra compiler and linker flags to the LLVM CMake build.
138#cflags = ""
139#cxxflags = ""
140#ldflags = ""
141
142# Use libc++ when building LLVM instead of libstdc++. This is the default on
143# platforms already use libc++ as the default C++ library, but this option
144# allows you to use libc++ even on platforms when it's not. You need to ensure
145# that your host compiler ships with libc++.
146#use-libcxx = false
147
148# The value specified here will be passed as `-DLLVM_USE_LINKER` to CMake.
149#use-linker = <none> (path)
150
151# Whether or not to specify `-DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=YES`
152#allow-old-toolchain = false
153
154# Whether to include the Polly optimizer.
155#polly = false
156
157# Whether to build the clang compiler.
158#clang = false
159
160# Whether to enable llvm compilation warnings.
161#enable-warnings = false
162
163# Custom CMake defines to set when building LLVM.
164#build-config = {}
165
166# =============================================================================
167# Tweaking how GCC is compiled
168# =============================================================================
169[gcc]
170# Download GCC from CI instead of building it locally.
171# Note that this will attempt to download GCC even if there are local
172# modifications to the `src/gcc` submodule.
173# Currently, this is only supported for the `x86_64-unknown-linux-gnu` target.
174# download-ci-gcc = false
175
176# =============================================================================
177# General build configuration options
178# =============================================================================
179[build]
180
181# The default stage to use for the `check` subcommand
182#check-stage = 0
183
184# The default stage to use for the `doc` subcommand
185#doc-stage = 0
186
187# The default stage to use for the `build` subcommand
188#build-stage = 1
189
190# The default stage to use for the `test` subcommand
191#test-stage = 1
192
193# The default stage to use for the `dist` subcommand
194#dist-stage = 2
195
196# The default stage to use for the `install` subcommand
197#install-stage = 2
198
199# The default stage to use for the `bench` subcommand
200#bench-stage = 2
201
202# A descriptive string to be appended to version output (e.g., `rustc --version`),
203# which is also used in places like debuginfo `DW_AT_producer`. This may be useful for
204# supplementary build information, like distro-specific package versions.
205#
206# The Rust compiler will differentiate between versions of itself, including
207# based on this string, which means that if you wish to be compatible with
208# upstream Rust you need to set this to "". However, note that if you set this to "" but
209# are not actually compatible -- for example if you've backported patches that change
210# behavior -- this may lead to miscompilations or other bugs.
211#description = ""
212
213# Build triple for the pre-compiled snapshot compiler. If `rustc` is set, this must match its host
214# triple (see `rustc --version --verbose`; cross-compiling the rust build system itself is NOT
215# supported). If `rustc` is unset, this must be a platform with pre-compiled host tools
216# (https://doc.rust-lang.org/nightly/rustc/platform-support.html). The current platform must be
217# able to run binaries of this build triple.
218#
219# If `rustc` is present in path, this defaults to the host it was compiled for.
220# Otherwise, `x.py` will try to infer it from the output of `uname`.
221# If `uname` is not found in PATH, we assume this is `x86_64-pc-windows-msvc`.
222# This may be changed in the future.
223#build = "x86_64-unknown-linux-gnu" (as an example)
224
225# Which triples to produce a compiler toolchain for. Each of these triples will be bootstrapped from
226# the build triple themselves. In other words, this is the list of triples for which to build a
227# compiler that can RUN on that triple.
228#
229# Defaults to just the `build` triple.
230#host = [build.build] (list of triples)
231
232# Which triples to build libraries (core/alloc/std/test/proc_macro) for. Each of these triples will
233# be bootstrapped from the build triple themselves. In other words, this is the list of triples for
234# which to build a library that can CROSS-COMPILE to that triple.
235#
236# Defaults to `host`. If you set this explicitly, you likely want to add all
237# host triples to this list as well in order for those host toolchains to be
238# able to compile programs for their native target.
239#target = build.host (list of triples)
240
241# Use this directory to store build artifacts. Paths are relative to the current directory, not to
242# the root of the repository.
243#build-dir = "build"
244
245# Instead of downloading the src/stage0 version of Cargo specified, use
246# this Cargo binary instead to build all Rust code
247# If you set this, you likely want to set `rustc` as well.
248#cargo = "/path/to/cargo"
249
250# Instead of downloading the src/stage0 version of the compiler
251# specified, use this rustc binary instead as the stage0 snapshot compiler.
252# If you set this, you likely want to set `cargo` as well.
253#rustc = "/path/to/rustc"
254
255# Instead of downloading the src/stage0 version of rustfmt specified,
256# use this rustfmt binary instead as the stage0 snapshot rustfmt.
257#rustfmt = "/path/to/rustfmt"
258
259# Instead of downloading the src/stage0 version of cargo-clippy specified,
260# use this cargo-clippy binary instead as the stage0 snapshot cargo-clippy.
261#
262# Note that this option should be used with the same toolchain as the `rustc` option above.
263# Otherwise, clippy is likely to fail due to a toolchain conflict.
264#cargo-clippy = "/path/to/cargo-clippy"
265
266# Whether to build documentation by default. If false, rustdoc and
267# friends will still be compiled but they will not be used to generate any
268# documentation.
269#
270# You can still build documentation when this is disabled by explicitly passing paths,
271# e.g. `x doc library`.
272#docs = true
273
274# Flag to specify whether CSS, JavaScript, and HTML are minified when
275# docs are generated. JSON is always minified, because it's enormous,
276# and generated in already-minified form from the beginning.
277#docs-minification = true
278
279# Flag to specify whether private items should be included in the library docs.
280#library-docs-private-items = false
281
282# Indicate whether to build compiler documentation by default.
283# You can still build documentation when this is disabled by explicitly passing a path: `x doc compiler`.
284#compiler-docs = false
285
286# Indicate whether git submodules are managed and updated automatically.
287#submodules = true
288
289# The path to (or name of) the GDB executable to use. This is only used for
290# executing the debuginfo test suite.
291#gdb = "gdb"
292
293# The path to (or name of) the LLDB executable to use. This is only used for
294# executing the debuginfo test suite.
295#lldb = "lldb"
296
297# The node.js executable to use. Note that this is only used for the emscripten
298# target when running tests, otherwise this can be omitted.
299#nodejs = "node"
300
301# The npm executable to use. Note that this is used for rustdoc-gui tests,
302# otherwise this can be omitted.
303#
304# Under Windows this should be `npm.cmd` or path to it (verified on nodejs v18.06), or
305# error will be emitted.
306#npm = "npm"
307
308# Python interpreter to use for various tasks throughout the build, notably
309# rustdoc tests, the lldb python interpreter, and some dist bits and pieces.
310#
311# Defaults to the Python interpreter used to execute x.py.
312#python = "python"
313
314# The path to the REUSE executable to use. Note that REUSE is not required in
315# most cases, as our tooling relies on a cached (and shrunk) copy of the
316# REUSE output present in the git repository and in our source tarballs.
317#
318# REUSE is only needed if your changes caused the overall licensing of the
319# repository to change, and the cached copy has to be regenerated.
320#
321# Defaults to the "reuse" command in the system path.
322#reuse = "reuse"
323
324# Force Cargo to check that Cargo.lock describes the precise dependency
325# set that all the Cargo.toml files create, instead of updating it.
326#locked-deps = false
327
328# Indicate whether the vendored sources are used for Rust dependencies or not.
329#
330# Vendoring requires additional setup. We recommend using the pre-generated source tarballs if you
331# want to use vendoring. See https://forge.rust-lang.org/infra/other-installation-methods.html#source-code.
332#vendor = if "is a tarball source" && "vendor" dir exists && ".cargo/config.toml" file exists { true } else { false }
333
334# Typically the build system will build the Rust compiler twice. The second
335# compiler, however, will simply use its own libraries to link against. If you
336# would rather to perform a full bootstrap, compiling the compiler three times,
337# then you can set this option to true.
338#
339# This is only useful for verifying that rustc generates reproducible builds.
340#full-bootstrap = false
341
342# Set the bootstrap/download cache path. It is useful when building rust
343# repeatedly in a CI environment.
344#bootstrap-cache-path = /path/to/shared/cache
345
346# Enable a build of the extended Rust tool set which is not only the compiler
347# but also tools such as Cargo. This will also produce "combined installers"
348# which are used to install Rust and Cargo together.
349# The `tools` (check `config.example.toml` to see its default value) option specifies
350# which tools should be built if `extended = true`.
351#
352# This is disabled by default.
353#extended = false
354
355# Set of tools to be included in the installation.
356#
357# If `extended = false`, the only one of these built by default is rustdoc.
358#
359# If `extended = true`, they are all included.
360#
361# If any enabled tool fails to build, the installation fails.
362#tools = [
363# "cargo",
364# "clippy",
365# "rustdoc",
366# "rustfmt",
367# "rust-analyzer",
368# "rust-analyzer-proc-macro-srv",
369# "analysis",
370# "src",
371# "wasm-component-ld",
372# "miri", "cargo-miri" # for dev/nightly channels
373#]
374
375# Verbosity level: 0 == not verbose, 1 == verbose, 2 == very verbose, 3 == print environment variables on each rustc invocation
376#verbose = 0
377
378# Build the sanitizer runtimes
379#sanitizers = false
380
381# Build the profiler runtime (required when compiling with options that depend
382# on this runtime, such as `-C profile-generate` or `-C instrument-coverage`).
383#profiler = false
384
385# Use the optimized LLVM C intrinsics for `compiler_builtins`, rather than Rust intrinsics.
386# Requires the LLVM submodule to be managed by bootstrap (i.e. not external) so that `compiler-rt`
387# sources are available.
388#
389# Setting this to `false` generates slower code, but removes the requirement for a C toolchain in
390# order to run `x check`.
391#optimized-compiler-builtins = if rust.channel == "dev" { false } else { true }
392
393# Indicates whether the native libraries linked into Cargo will be statically
394# linked or not.
395#cargo-native-static = false
396
397# Run the build with low priority, by setting the process group's "nice" value
398# to +10 on Unix platforms, and by using a "low priority" job object on Windows.
399#low-priority = false
400
401# Arguments passed to the `./configure` script, used during distcheck. You
402# probably won't fill this in but rather it's filled in by the `./configure`
403# script. Useful for debugging.
404#configure-args = []
405
406# Indicates that a local rebuild is occurring instead of a full bootstrap,
407# essentially skipping stage0 as the local compiler is recompiling itself again.
408# Useful for modifying only the stage2 compiler without having to pass `--keep-stage 0` each time.
409#local-rebuild = false
410
411# Print out how long each bootstrap step took (mostly intended for CI and
412# tracking over time)
413#print-step-timings = false
414
415# Print out resource usage data for each bootstrap step, as defined by the Unix
416# struct rusage. (Note that this setting is completely unstable: the data it
417# captures, what platforms it supports, the format of its associated output, and
418# this setting's very existence, are all subject to change.)
419#print-step-rusage = false
420
421# Always patch binaries for usage with Nix toolchains. If `true` then binaries
422# will be patched unconditionally. If `false` or unset, binaries will be patched
423# only if the current distribution is NixOS. This option is useful when using
424# a Nix toolchain on non-NixOS distributions.
425#patch-binaries-for-nix = false
426
427# Collect information and statistics about the current build, and write it to
428# disk. Enabling this has no impact on the resulting build output. The
429# schema of the file generated by the build metrics feature is unstable, and
430# this is not intended to be used during local development.
431#metrics = false
432
433# Specify the location of the Android NDK. Used when targeting Android.
434#android-ndk = "/path/to/android-ndk-r26d"
435
436# Number of parallel jobs to be used for building and testing. If set to `0` or
437# omitted, it will be automatically determined. This is the `-j`/`--jobs` flag
438# passed to cargo invocations.
439#jobs = 0
440
441# What custom diff tool to use for displaying compiletest tests.
442#compiletest-diff-tool = <none>
443
444# Indicates whether ccache is used when building certain artifacts (e.g. LLVM).
445# Set to `true` to use the first `ccache` in PATH, or set an absolute path to use
446# a specific version.
447#ccache = false
448
449# List of paths to exclude from the build and test processes.
450# For example, exclude = ["tests/ui", "src/tools/tidy"].
451#exclude = []
452
453# =============================================================================
454# General install configuration options
455# =============================================================================
456[install]
457
458# Where to install the generated toolchain. Must be an absolute path.
459#prefix = "/usr/local"
460
461# Where to install system configuration files.
462# If this is a relative path, it will get installed in `prefix` above
463#sysconfdir = "/etc"
464
465# Where to install documentation in `prefix` above
466#docdir = "share/doc/rust"
467
468# Where to install binaries in `prefix` above
469#bindir = "bin"
470
471# Where to install libraries in `prefix` above
472#libdir = "lib"
473
474# Where to install man pages in `prefix` above
475#mandir = "share/man"
476
477# Where to install data in `prefix` above
478#datadir = "share"
479
480# =============================================================================
481# Options for compiling Rust code itself
482# =============================================================================
483[rust]
484
485# Whether or not to optimize when compiling the compiler and standard library,
486# and what level of optimization to use.
487# WARNING: Building with optimize = false is NOT SUPPORTED. Due to bootstrapping,
488# building without optimizations takes much longer than optimizing. Further, some platforms
489# fail to build without this optimization (c.f. #65352).
490# The valid options are:
491# true - Enable optimizations.
492# false - Disable optimizations.
493# 0 - Disable optimizations.
494# 1 - Basic optimizations.
495# 2 - Some optimizations.
496# 3 - All optimizations.
497# "s" - Optimize for binary size.
498# "z" - Optimize for binary size, but also turn off loop vectorization.
499#optimize = true
500
501# Indicates that the build should be configured for debugging Rust. A
502# `debug`-enabled compiler and standard library will be somewhat
503# slower (due to e.g. checking of debug assertions) but should remain
504# usable.
505#
506# Note: If this value is set to `true`, it will affect a number of
507# configuration options below as well, if they have been left
508# unconfigured in this file.
509#
510# Note: changes to the `debug` setting do *not* affect `optimize`
511# above. In theory, a "maximally debuggable" environment would
512# set `optimize` to `false` above to assist the introspection
513# facilities of debuggers like lldb and gdb. To recreate such an
514# environment, explicitly set `optimize` to `false` and `debug`
515# to `true`. In practice, everyone leaves `optimize` set to
516# `true`, because an unoptimized rustc with debugging
517# enabled becomes *unusably slow* (e.g. rust-lang/rust#24840
518# reported a 25x slowdown) and bootstrapping the supposed
519# "maximally debuggable" environment (notably libstd) takes
520# hours to build.
521#
522#debug = false
523
524# Whether to download the stage 1 and 2 compilers from CI. This is useful if you
525# are working on tools, doc-comments, or library (you will be able to build the
526# standard library without needing to build the compiler).
527#
528# Set this to "if-unchanged" if you are working on `src/tools`, `tests` or
529# `library` (on CI, `library` changes triggers in-tree compiler build) to speed
530# up the build process if you don't need to build a compiler from the latest
531# commit from `master`.
532#
533# Set this to `true` to always download or `false` to always use the in-tree
534# compiler.
535#download-rustc = false
536
537# Number of codegen units to use for each compiler invocation. A value of 0
538# means "the number of cores on this machine", and 1+ is passed through to the
539# compiler.
540#
541# Uses the rustc defaults: https://doc.rust-lang.org/rustc/codegen-options/index.html#codegen-units
542#codegen-units = if incremental { 256 } else { 16 }
543
544# Sets the number of codegen units to build the standard library with,
545# regardless of what the codegen-unit setting for the rest of the compiler is.
546# NOTE: building with anything other than 1 is known to occasionally have bugs.
547#codegen-units-std = codegen-units
548
549# Whether or not debug assertions are enabled for the compiler and standard library.
550# These can help find bugs at the cost of a small runtime slowdown.
551#
552# Defaults to rust.debug value
553#debug-assertions = rust.debug (boolean)
554
555# Whether or not debug assertions are enabled for the standard library.
556# Overrides the `debug-assertions` option, if defined.
557#
558# Defaults to rust.debug-assertions value
559#debug-assertions-std = rust.debug-assertions (boolean)
560
561# Whether or not to leave debug! and trace! calls in the rust binary.
562#
563# Defaults to rust.debug-assertions value
564#
565# If you see a message from `tracing` saying "some trace filter directives would enable traces that
566# are disabled statically" because `max_level_info` is enabled, set this value to `true`.
567#debug-logging = rust.debug-assertions (boolean)
568
569# Whether or not to build rustc, tools and the libraries with randomized type layout
570#randomize-layout = false
571
572# Whether or not overflow checks are enabled for the compiler and standard
573# library.
574#
575# Defaults to rust.debug value
576#overflow-checks = rust.debug (boolean)
577
578# Whether or not overflow checks are enabled for the standard library.
579# Overrides the `overflow-checks` option, if defined.
580#
581# Defaults to rust.overflow-checks value
582#overflow-checks-std = rust.overflow-checks (boolean)
583
584# Debuginfo level for most of Rust code, corresponds to the `-C debuginfo=N` option of `rustc`.
585# See https://doc.rust-lang.org/rustc/codegen-options/index.html#debuginfo for available options.
586#
587# Can be overridden for specific subsets of Rust code (rustc, std or tools).
588# Debuginfo for tests run with compiletest is not controlled by this option
589# and needs to be enabled separately with `debuginfo-level-tests`.
590#
591# Note that debuginfo-level = 2 generates several gigabytes of debuginfo
592# and will slow down the linking process significantly.
593#debuginfo-level = if rust.debug { 1 } else { 0 }
594
595# Debuginfo level for the compiler.
596#debuginfo-level-rustc = rust.debuginfo-level
597
598# Debuginfo level for the standard library.
599#debuginfo-level-std = rust.debuginfo-level
600
601# Debuginfo level for the tools.
602#debuginfo-level-tools = rust.debuginfo-level
603
604# Debuginfo level for the test suites run with compiletest.
605# FIXME(#61117): Some tests fail when this option is enabled.
606#debuginfo-level-tests = 0
607
608# Should rustc and the standard library be built with split debuginfo? Default
609# is platform dependent.
610#
611# This field is deprecated, use `target.<triple>.split-debuginfo` instead.
612#
613# The value specified here is only used when targeting the `build.build` triple,
614# and is overridden by `target.<triple>.split-debuginfo` if specified.
615#
616#split-debuginfo = see target.<triple>.split-debuginfo
617
618# Whether or not `panic!`s generate backtraces (RUST_BACKTRACE)
619#backtrace = true
620
621# Whether to always use incremental compilation when building rustc
622#incremental = false
623
624# The default linker that will be hard-coded into the generated
625# compiler for targets that don't specify a default linker explicitly
626# in their target specifications. Note that this is not the linker
627# used to link said compiler. It can also be set per-target (via the
628# `[target.<triple>]` block), which may be useful in a cross-compilation
629# setting.
630#
631# See https://doc.rust-lang.org/rustc/codegen-options/index.html#linker for more information.
632#default-linker = <none> (path)
633
634# The "channel" for the Rust build to produce. The stable/beta channels only
635# allow using stable features, whereas the nightly and dev channels allow using
636# nightly features.
637#
638# You can set the channel to "auto-detect" to load the channel name from `src/ci/channel`.
639#
640# If using tarball sources, default value is "auto-detect", otherwise, it's "dev".
641#channel = if "is a tarball source" { "auto-detect" } else { "dev" }
642
643# The root location of the musl installation directory. The library directory
644# will also need to contain libunwind.a for an unwinding implementation. Note
645# that this option only makes sense for musl targets that produce statically
646# linked binaries.
647#
648# Defaults to /usr on musl hosts. Has no default otherwise.
649#musl-root = <platform specific> (path)
650
651# By default the `rustc` executable is built with `-Wl,-rpath` flags on Unix
652# platforms to ensure that the compiler is usable by default from the build
653# directory (as it links to a number of dynamic libraries). This may not be
654# desired in distributions, for example.
655#rpath = true
656
657# Indicates whether symbols should be stripped using `-Cstrip=symbols`.
658#strip = false
659
660# Forces frame pointers to be used with `-Cforce-frame-pointers`.
661# This can be helpful for profiling at a small performance cost.
662#frame-pointers = false
663
664# Indicates whether stack protectors should be used
665# via the unstable option `-Zstack-protector`.
666#
667# Valid options are : `none`(default),`basic`,`strong`, or `all`.
668# `strong` and `basic` options may be buggy and are not recommended, see rust-lang/rust#114903.
669#stack-protector = "none"
670
671# Prints each test name as it is executed, to help debug issues in the test harness itself.
672#verbose-tests = if is_verbose { true } else { false }
673
674# Flag indicating whether tests are compiled with optimizations (the -O flag).
675#optimize-tests = true
676
677# Flag indicating whether codegen tests will be run or not. If you get an error
678# saying that the FileCheck executable is missing, you may want to disable this.
679# Also see the target's llvm-filecheck option.
680#codegen-tests = true
681
682# Flag indicating whether git info will be retrieved from .git automatically.
683# Having the git information can cause a lot of rebuilds during development.
684#omit-git-hash = if rust.channel == "dev" { true } else { false }
685
686# Whether to create a source tarball by default when running `x dist`.
687#
688# You can still build a source tarball when this is disabled by explicitly passing `x dist rustc-src`.
689#dist-src = true
690
691# After building or testing an optional component (e.g. the nomicon or reference), append the
692# result (broken, compiling, testing) into this JSON file.
693#save-toolstates = <none> (path)
694
695# This is an array of the codegen backends that will be compiled for the rustc
696# that's being compiled. The default is to only build the LLVM codegen backend,
697# and currently the only standard options supported are `"llvm"`, `"cranelift"`
698# and `"gcc"`. The first backend in this list will be used as default by rustc
699# when no explicit backend is specified.
700#codegen-backends = ["llvm"]
701
702# Indicates whether LLD will be compiled and made available in the sysroot for rustc to execute, and
703# whether to set it as rustc's default linker on `x86_64-unknown-linux-gnu`. This will also only be
704# when *not* building an external LLVM (so only when using `download-ci-llvm` or building LLVM from
705# the in-tree source): setting `llvm-config` in the `[target.x86_64-unknown-linux-gnu]` section will
706# make this default to false.
707#lld = false in all cases, except on `x86_64-unknown-linux-gnu` as described above, where it is true
708
709# Indicates whether LLD will be used to link Rust crates during bootstrap on
710# supported platforms.
711# If set to `true` or `"external"`, a global `lld` binary that has to be in $PATH
712# will be used.
713# If set to `"self-contained"`, rust-lld from the snapshot compiler will be used.
714#
715# On MSVC, LLD will not be used if we're cross linking.
716#
717# Explicitly setting the linker for a target will override this option when targeting MSVC.
718#use-lld = false
719
720# Indicates whether some LLVM tools, like llvm-objdump, will be made available in the
721# sysroot.
722#llvm-tools = true
723
724# Indicates whether the `self-contained` llvm-bitcode-linker, will be made available
725# in the sysroot. It is required for running nvptx tests.
726#llvm-bitcode-linker = false
727
728# Whether to deny warnings in crates
729#deny-warnings = true
730
731# Print backtrace on internal compiler errors during bootstrap
732#backtrace-on-ice = false
733
734# Whether to verify generated LLVM IR
735#verify-llvm-ir = false
736
737# Compile the compiler with a non-default ThinLTO import limit. This import
738# limit controls the maximum size of functions imported by ThinLTO. Decreasing
739# will make code compile faster at the expense of lower runtime performance.
740#thin-lto-import-instr-limit = if incremental { 10 } else { LLVM default (currently 100) }
741
742# Map debuginfo paths to `/rust/$sha/...`.
743# Useful for reproducible builds. Generally only set for releases
744#remap-debuginfo = false
745
746# Link the compiler and LLVM against `jemalloc` instead of the default libc allocator.
747# This option is only tested on Linux and OSX. It can also be configured per-target in the
748# [target.<tuple>] section.
749#jemalloc = false
750
751# Run tests in various test suites with the "nll compare mode" in addition to
752# running the tests in normal mode. Largely only used on CI and during local
753# development of NLL
754#test-compare-mode = false
755
756# Global default for llvm-libunwind for all targets. See the target-specific
757# documentation for llvm-libunwind below. Note that the target-specific
758# option will override this if set.
759#llvm-libunwind = 'no'
760
761# Enable Windows Control Flow Guard checks in the standard library.
762# This only applies from stage 1 onwards, and only for Windows targets.
763#control-flow-guard = false
764
765# Enable Windows EHCont Guard checks in the standard library.
766# This only applies from stage 1 onwards, and only for Windows targets.
767#ehcont-guard = false
768
769# Enable symbol-mangling-version v0. This can be helpful when profiling rustc,
770# as generics will be preserved in symbols (rather than erased into opaque T).
771# When no setting is given, the new scheme will be used when compiling the
772# compiler and its tools and the legacy scheme will be used when compiling the
773# standard library.
774# If an explicit setting is given, it will be used for all parts of the codebase.
775#new-symbol-mangling = true|false (see comment)
776
777# Select LTO mode that will be used for compiling rustc. By default, thin local LTO
778# (LTO within a single crate) is used (like for any Rust crate). You can also select
779# "thin" or "fat" to apply Thin/Fat LTO to the `rustc_driver` dylib, or "off" to disable
780# LTO entirely.
781#lto = "thin-local"
782
783# Build compiler with the optimization enabled and -Zvalidate-mir, currently only for `std`
784#validate-mir-opts = 3
785
786# Configure `std` features used during bootstrap.
787#
788# Default features will be expanded in the following cases:
789# - If `rust.llvm-libunwind` or `target.llvm-libunwind` is enabled:
790# - "llvm-libunwind" will be added for in-tree LLVM builds.
791# - "system-llvm-libunwind" will be added for system LLVM builds.
792# - If `rust.backtrace` is enabled, "backtrace" will be added.
793# - If `rust.profiler` or `target.profiler` is enabled, "profiler" will be added.
794# - If building for a zkvm target, "compiler-builtins-mem" will be added.
795#
796# Since libstd also builds libcore and liballoc as dependencies and all their features are mirrored
797# as libstd features, this option can also be used to configure features such as optimize_for_size.
798#std-features = ["panic_unwind"]
799
800# =============================================================================
801# Options for specific targets
802#
803# Each of the following options is scoped to the specific target triple in
804# question and is used for determining how to compile each target.
805# =============================================================================
806[target.x86_64-unknown-linux-gnu]
807
808# C compiler to be used to compile C code. Note that the
809# default value is platform specific, and if not specified it may also depend on
810# what platform is crossing to what platform.
811# See `src/bootstrap/src/utils/cc_detect.rs` for details.
812#cc = "cc" (path)
813
814# C++ compiler to be used to compile C++ code (e.g. LLVM and our LLVM shims).
815# This is only used for host targets.
816# See `src/bootstrap/src/utils/cc_detect.rs` for details.
817#cxx = "c++" (path)
818
819# Archiver to be used to assemble static libraries compiled from C/C++ code.
820# Note: an absolute path should be used, otherwise LLVM build will break.
821#ar = "ar" (path)
822
823# Ranlib to be used to assemble static libraries compiled from C/C++ code.
824# Note: an absolute path should be used, otherwise LLVM build will break.
825#ranlib = "ranlib" (path)
826
827# Linker to be used to bootstrap Rust code. Note that the
828# default value is platform specific, and if not specified it may also depend on
829# what platform is crossing to what platform.
830# Setting this will override the `use-lld` option for Rust code when targeting MSVC.
831#linker = "cc" (path)
832
833# Should rustc and the standard library be built with split debuginfo? Default
834# is platform dependent.
835#
836# Valid values are the same as those accepted by `-C split-debuginfo`
837# (`off`/`unpacked`/`packed`).
838#
839# On Linux, split debuginfo is disabled by default.
840#
841# On Apple platforms, unpacked split debuginfo is used by default. Unpacked
842# debuginfo does not run `dsymutil`, which packages debuginfo from disparate
843# object files into a single `.dSYM` file. `dsymutil` adds time to builds for
844# no clear benefit, and also makes it more difficult for debuggers to find
845# debug info. The compiler currently defaults to running `dsymutil` to preserve
846# its historical default, but when compiling the compiler itself, we skip it by
847# default since we know it's safe to do so in that case.
848#
849# On Windows platforms, packed debuginfo is the only supported option,
850# producing a `.pdb` file.
851#split-debuginfo = if linux { off } else if windows { packed } else if apple { unpacked }
852
853# Path to the `llvm-config` binary of the installation of a custom LLVM to link
854# against. Note that if this is specified we don't compile LLVM at all for this
855# target.
856#llvm-config = <none> (path)
857
858# Override detection of whether this is a Rust-patched LLVM. This would be used
859# in conjunction with either an llvm-config or build.submodules = false.
860#llvm-has-rust-patches = if llvm-config { false } else { true }
861
862# Normally the build system can find LLVM's FileCheck utility, but if
863# not, you can specify an explicit file name for it.
864#llvm-filecheck = "/path/to/llvm-version/bin/FileCheck"
865
866# Use LLVM libunwind as the implementation for Rust's unwinder.
867# Accepted values are 'in-tree' (formerly true), 'system' or 'no' (formerly false).
868# This option only applies for Linux and Fuchsia targets.
869# On Linux target, if crt-static is not enabled, 'no' means dynamic link to
870# `libgcc_s.so`, 'in-tree' means static link to the in-tree build of llvm libunwind
871# and 'system' means dynamic link to `libunwind.so`. If crt-static is enabled,
872# the behavior is depend on the libc. On musl target, 'no' and 'in-tree' both
873# means static link to the in-tree build of llvm libunwind, and 'system' means
874# static link to `libunwind.a` provided by system. Due to the limitation of glibc,
875# it must link to `libgcc_eh.a` to get a working output, and this option have no effect.
876#llvm-libunwind = 'no' if Linux, 'in-tree' if Fuchsia
877
878# Build the sanitizer runtimes for this target.
879# This option will override the same option under [build] section.
880#sanitizers = build.sanitizers (bool)
881
882# When true, build the profiler runtime for this target (required when compiling
883# with options that depend on this runtime, such as `-C profile-generate` or
884# `-C instrument-coverage`). This may also be given a path to an existing build
885# of the profiling runtime library from LLVM's compiler-rt.
886# This option will override the same option under [build] section.
887#profiler = build.profiler (bool)
888
889# This option supports enable `rpath` in each target independently,
890# and will override the same option under [rust] section. It only works on Unix platforms
891#rpath = rust.rpath (bool)
892
893# Force static or dynamic linkage of the standard library for this target. If
894# this target is a host for rustc, this will also affect the linkage of the
895# compiler itself. This is useful for building rustc on targets that normally
896# only use static libraries. If unset, the target's default linkage is used.
897#crt-static = <platform-specific> (bool)
898
899# The root location of the musl installation directory. The library directory
900# will also need to contain libunwind.a for an unwinding implementation. Note
901# that this option only makes sense for musl targets that produce statically
902# linked binaries.
903#musl-root = build.musl-root (path)
904
905# The full path to the musl libdir.
906#musl-libdir = musl-root/lib
907
908# The root location of the `wasm32-wasip1` sysroot. Only used for WASI
909# related targets. Make sure to create a `[target.wasm32-wasip1]`
910# section and move this field there (or equivalent for the target being built).
911#wasi-root = <none> (path)
912
913# Used in testing for configuring where the QEMU images are located, you
914# probably don't want to use this.
915#qemu-rootfs = <none> (path)
916
917# Skip building the `std` library for this target. Enabled by default for
918# target triples containing `-none`, `nvptx`, `switch`, or `-uefi`.
919#no-std = <platform-specific> (bool)
920
921# This is an array of the codegen backends that will be
922# compiled for this target, overriding the global rust.codegen-backends option.
923# See that option for more info.
924#codegen-backends = rust.codegen-backends (array)
925
926# This is a "runner" to pass to `compiletest` when executing tests. Tests will
927# execute this tool where the binary-to-test is passed as an argument. Can
928# be useful for situations such as when WebAssembly is being tested and a
929# runtime needs to be configured. This value is similar to
930# Cargo's `CARGO_$target_RUNNER` configuration.
931#
932# This configuration is a space-separated list of arguments so `foo bar` would
933# execute the program `foo` with the first argument as `bar` and the second
934# argument as the test binary.
935#runner = <none> (string)
936
937# Use the optimized LLVM C intrinsics for `compiler_builtins`, rather than Rust intrinsics
938# on this target.
939# Requires the LLVM submodule to be managed by bootstrap (i.e. not external) so that `compiler-rt`
940# sources are available.
941#
942# Setting this to `false` generates slower code, but removes the requirement for a C toolchain in
943# order to run `x check`.
944#optimized-compiler-builtins = build.optimized-compiler-builtins (bool)
945
946# Link the compiler and LLVM against `jemalloc` instead of the default libc allocator.
947# This overrides the global `rust.jemalloc` option. See that option for more info.
948#jemalloc = rust.jemalloc (bool)
949
950# =============================================================================
951# Distribution options
952#
953# These options are related to distribution, mostly for the Rust project itself.
954# You probably won't need to concern yourself with any of these options
955# =============================================================================
956[dist]
957
958# This is the folder of artifacts that the build system will sign. All files in
959# this directory will be signed with the default gpg key using the system `gpg`
960# binary. The `asc` and `sha256` files will all be output into the standard dist
961# output folder (currently `build/dist`)
962#
963# This folder should be populated ahead of time before the build system is
964# invoked.
965#sign-folder = <none> (path)
966
967# The remote address that all artifacts will eventually be uploaded to. The
968# build system generates manifests which will point to these urls, and for the
969# manifests to be correct they'll have to have the right URLs encoded.
970#
971# Note that this address should not contain a trailing slash as file names will
972# be appended to it.
973#upload-addr = <none> (URL)
974
975# Whether to build a plain source tarball to upload
976# We disable that on Windows not to override the one already uploaded on S3
977# as the one built on Windows will contain backslashes in paths causing problems
978# on linux
979#src-tarball = true
980
981# List of compression formats to use when generating dist tarballs. The list of
982# formats is provided to rust-installer, which must support all of them.
983#
984# This list must be non-empty.
985#compression-formats = ["gz", "xz"]
986
987# How much time should be spent compressing the tarballs. The better the
988# compression profile, the longer compression will take.
989#
990# Available options: fast, balanced, best
991#compression-profile = "fast"
992
993# Copy the linker, DLLs, and various libraries from MinGW into the Rust toolchain.
994# Only applies when the host or target is pc-windows-gnu.
995#include-mingw-linker = true
996
997# Whether to vendor dependencies for the dist tarball.
998#vendor = if "is a tarball source" || "is a git repository" { true } else { false }
src/bootstrap/README.md+1-1
......@@ -163,7 +163,7 @@ compiler, which will then build the bootstrap binary written in Rust.
163163
164164Because there are two separate codebases behind `x.py`, they need to
165165be kept in sync. In particular, both `bootstrap.py` and the bootstrap binary
166parse `config.toml` and read the same command line arguments. `bootstrap.py`
166parse `bootstrap.toml` and read the same command line arguments. `bootstrap.py`
167167keeps these in sync by setting various environment variables, and the
168168programs sometimes have to add arguments that are explicitly ignored, to be
169169read by the other.
src/bootstrap/bootstrap.py+17-9
......@@ -726,7 +726,7 @@ class RustBuild(object):
726726
727727 def should_fix_bins_and_dylibs(self):
728728 """Whether or not `fix_bin_or_dylib` needs to be run; can only be True
729 on NixOS or if config.toml has `build.patch-binaries-for-nix` set.
729 on NixOS or if bootstrap.toml has `build.patch-binaries-for-nix` set.
730730 """
731731 if self._should_fix_bins_and_dylibs is not None:
732732 return self._should_fix_bins_and_dylibs
......@@ -775,7 +775,7 @@ class RustBuild(object):
775775 "The IN_NIX_SHELL environment variable is `{}`;".format(
776776 in_nix_shell
777777 ),
778 "you may need to set `patch-binaries-for-nix=true` in config.toml",
778 "you may need to set `patch-binaries-for-nix=true` in bootstrap.toml",
779779 )
780780
781781 return is_nixos
......@@ -884,7 +884,7 @@ class RustBuild(object):
884884 return os.path.join(self.build_dir, self.build, subdir)
885885
886886 def get_toml(self, key, section=None):
887 """Returns the value of the given key in config.toml, otherwise returns None
887 """Returns the value of the given key in bootstrap.toml, otherwise returns None
888888
889889 >>> rb = RustBuild()
890890 >>> rb.config_toml = 'key1 = "value1"\\nkey2 = "value2"'
......@@ -1250,17 +1250,23 @@ def bootstrap(args):
12501250 "unless you put them in place manually."
12511251 )
12521252
1253 # Read from `--config`, then `RUST_BOOTSTRAP_CONFIG`, then `./config.toml`,
1254 # then `config.toml` in the root directory.
1253 # Read from `--config` first, followed by `RUST_BOOTSTRAP_CONFIG`.
1254 # If neither is set, check `./bootstrap.toml`, then `bootstrap.toml` in the root directory.
1255 # If those are unavailable, fall back to `./config.toml`, then `config.toml` for
1256 # backward compatibility.
12551257 toml_path = args.config or os.getenv("RUST_BOOTSTRAP_CONFIG")
12561258 using_default_path = toml_path is None
12571259 if using_default_path:
1258 toml_path = "config.toml"
1260 toml_path = "bootstrap.toml"
12591261 if not os.path.exists(toml_path):
1260 toml_path = os.path.join(rust_root, toml_path)
1262 toml_path = os.path.join(rust_root, "bootstrap.toml")
1263 if not os.path.exists(toml_path):
1264 toml_path = "config.toml"
1265 if not os.path.exists(toml_path):
1266 toml_path = os.path.join(rust_root, "config.toml")
12611267
12621268 # Give a hard error if `--config` or `RUST_BOOTSTRAP_CONFIG` are set to a missing path,
1263 # but not if `config.toml` hasn't been created.
1269 # but not if `bootstrap.toml` hasn't been created.
12641270 if not using_default_path or os.path.exists(toml_path):
12651271 with open(toml_path) as config:
12661272 config_toml = config.read()
......@@ -1278,7 +1284,9 @@ def bootstrap(args):
12781284 # profiles to be renamed while maintaining back compatibility
12791285 # Keep in sync with `profile_aliases` in config.rs
12801286 profile_aliases = {"user": "dist"}
1281 include_file = "config.{}.toml".format(profile_aliases.get(profile) or profile)
1287 include_file = "bootstrap.{}.toml".format(
1288 profile_aliases.get(profile) or profile
1289 )
12821290 include_dir = os.path.join(rust_root, "src", "bootstrap", "defaults")
12831291 include_path = os.path.join(include_dir, include_file)
12841292
src/bootstrap/bootstrap_test.py+3-3
......@@ -156,7 +156,7 @@ class ParseArgsInConfigure(unittest.TestCase):
156156
157157
158158class GenerateAndParseConfig(unittest.TestCase):
159 """Test that we can serialize and deserialize a config.toml file"""
159 """Test that we can serialize and deserialize a bootstrap.toml file"""
160160
161161 def test_no_args(self):
162162 build = serialize_and_parse([])
......@@ -206,11 +206,11 @@ class BuildBootstrap(unittest.TestCase):
206206 # problem in most cases, but there is a scenario where it would cause
207207 # the test to fail.
208208 #
209 # When a custom local Cargo is configured in config.toml (with the
209 # When a custom local Cargo is configured in bootstrap.toml (with the
210210 # build.cargo setting), no Cargo is downloaded to any location known by
211211 # bootstrap, and bootstrap relies on that setting to find it.
212212 #
213 # In this test though we are not using the config.toml of the caller:
213 # In this test though we are not using the bootstrap.toml of the caller:
214214 # we are generating a blank one instead. If we don't set build.cargo in
215215 # it, the test will have no way to find Cargo, failing the test.
216216 cargo_bin = os.environ.get("BOOTSTRAP_TEST_CARGO_BIN")
src/bootstrap/configure.py+10-10
......@@ -367,8 +367,8 @@ if "--help" in sys.argv or "-h" in sys.argv:
367367 print("\t\t" + option.desc)
368368 print("")
369369 print("This configure script is a thin configuration shim over the true")
370 print("configuration system, `config.toml`. You can explore the comments")
371 print("in `config.example.toml` next to this configure script to see")
370 print("configuration system, `bootstrap.toml`. You can explore the comments")
371 print("in `bootstrap.example.toml` next to this configure script to see")
372372 print("more information about what each option is. Additionally you can")
373373 print("pass `--set` as an argument to set arbitrary key/value pairs")
374374 print("in the TOML configuration if desired")
......@@ -567,8 +567,8 @@ def apply_args(known_args, option_checking, config):
567567 raise RuntimeError("unhandled option {}".format(option.name))
568568
569569
570# "Parse" the `config.example.toml` file into the various sections, and we'll
571# use this as a template of a `config.toml` to write out which preserves
570# "Parse" the `bootstrap.example.toml` file into the various sections, and we'll
571# use this as a template of a `bootstrap.toml` to write out which preserves
572572# all the various comments and whatnot.
573573#
574574# Note that the `target` section is handled separately as we'll duplicate it
......@@ -581,7 +581,7 @@ def parse_example_config(known_args, config):
581581 targets = {}
582582 top_level_keys = []
583583
584 with open(rust_dir + "/config.example.toml") as example_config:
584 with open(rust_dir + "/bootstrap.example.toml") as example_config:
585585 example_lines = example_config.read().split("\n")
586586 for line in example_lines:
587587 if cur_section is None:
......@@ -755,8 +755,8 @@ def quit_if_file_exists(file):
755755
756756
757757if __name__ == "__main__":
758 # If 'config.toml' already exists, exit the script at this point
759 quit_if_file_exists("config.toml")
758 # If 'bootstrap.toml' already exists, exit the script at this point
759 quit_if_file_exists("bootstrap.toml")
760760
761761 if "GITHUB_ACTIONS" in os.environ:
762762 print("::group::Configure the build")
......@@ -766,11 +766,11 @@ if __name__ == "__main__":
766766 p("")
767767 section_order, sections, targets = parse_args(sys.argv[1:])
768768
769 # Now that we've built up our `config.toml`, write it all out in the same
769 # Now that we've built up our `bootstrap.toml`, write it all out in the same
770770 # order that we read it in.
771771 p("")
772 p("writing `config.toml` in current directory")
773 with bootstrap.output("config.toml") as f:
772 p("writing `bootstrap.toml` in current directory")
773 with bootstrap.output("bootstrap.toml") as f:
774774 write_config_toml(f, section_order, targets, sections)
775775
776776 with bootstrap.output("Makefile") as f:
src/bootstrap/defaults/bootstrap.compiler.toml created+37
......@@ -0,0 +1,37 @@
1# These defaults are meant for contributors to the compiler who do not modify codegen or LLVM
2[build]
3# Contributors working on the compiler will probably expect compiler docs to be generated.
4compiler-docs = true
5
6[rust]
7# This enables `RUSTC_LOG=debug`, avoiding confusing situations
8# where adding `debug!()` appears to do nothing.
9# However, it makes running the compiler slightly slower.
10debug-logging = true
11# Enables debug assertions, which guard from many mistakes when working on the compiler.
12debug-assertions = true
13# Get actually-useful information from backtraces, profiling, etc. with minimal added bytes
14debuginfo-level = "line-tables-only"
15# This greatly increases the speed of rebuilds, especially when there are only minor changes. However, it makes the initial build slightly slower.
16incremental = true
17# Print backtrace on internal compiler errors during bootstrap
18backtrace-on-ice = true
19# Make the compiler and standard library faster to build, at the expense of a ~20% runtime slowdown.
20lto = "off"
21# Forces frame pointers to be used with `-Cforce-frame-pointers`.
22# This can be helpful for profiling at a small performance cost.
23frame-pointers = true
24# Compiler contributors often want to build rustc even without any changes to
25# e.g. check that it builds locally and check the baseline behavior of a
26# compiler built from latest `master` commit.
27download-rustc = false
28
29[llvm]
30# Having this set to true disrupts compiler development workflows for people who use `llvm.download-ci-llvm = true`
31# because we don't provide ci-llvm on the `rustc-alt-builds` server. Therefore, it is kept off by default.
32assertions = false
33# Enable warnings during the LLVM compilation (when LLVM is changed, causing a compilation)
34enable-warnings = true
35# Will download LLVM from CI if available on your platform.
36# If you intend to modify `src/llvm-project`, use `"if-unchanged"` or `false` instead.
37download-ci-llvm = true
src/bootstrap/defaults/bootstrap.dist.toml created+27
......@@ -0,0 +1,27 @@
1# These defaults are meant for users and distro maintainers building from source, without intending to make multiple changes.
2[build]
3# When compiling from source, you almost always want a full stage 2 build,
4# which has all the latest optimizations from nightly.
5build-stage = 2
6test-stage = 2
7doc-stage = 2
8# When compiling from source, you usually want all tools.
9extended = true
10
11# Most users installing from source want to build all parts of the project from source.
12[llvm]
13download-ci-llvm = false
14
15[rust]
16# We have several defaults in bootstrap that depend on whether the channel is `dev` (e.g. `omit-git-hash` and `download-ci-llvm`).
17# Make sure they don't get set when installing from source.
18channel = "nightly"
19# Never download a rustc, distributions must build a fresh compiler.
20download-rustc = false
21lld = true
22# Build the llvm-bitcode-linker
23llvm-bitcode-linker = true
24
25[dist]
26# Use better compression when preparing tarballs.
27compression-profile = "balanced"
src/bootstrap/defaults/bootstrap.library.toml created+20
......@@ -0,0 +1,20 @@
1# These defaults are meant for contributors to the standard library and documentation.
2[build]
3# When building the standard library, you almost never want to build the compiler itself.
4build-stage = 0
5test-stage = 0
6bench-stage = 0
7
8[rust]
9# This greatly increases the speed of rebuilds, especially when there are only minor changes. However, it makes the initial build slightly slower.
10incremental = true
11# Make the compiler and standard library faster to build, at the expense of a ~20% runtime slowdown.
12lto = "off"
13# Download rustc by default for library profile if compiler-affecting
14# directories are not modified. For CI this is disabled.
15download-rustc = "if-unchanged"
16
17[llvm]
18# Will download LLVM from CI if available on your platform.
19# If you intend to modify `src/llvm-project`, use `"if-unchanged"` or `false` instead.
20download-ci-llvm = true
src/bootstrap/defaults/bootstrap.tools.toml created+21
......@@ -0,0 +1,21 @@
1# These defaults are meant for contributors to tools which build on the
2# compiler, but do not modify it directly.
3[rust]
4# This greatly increases the speed of rebuilds, especially when there are only minor changes. However, it makes the initial build slightly slower.
5incremental = true
6# Most commonly, tools contributors do not need to modify the compiler, so
7# downloading a CI rustc is a good default for tools profile.
8download-rustc = "if-unchanged"
9
10[build]
11# cargo and clippy tests don't pass on stage 1
12test-stage = 2
13# Document with the in-tree rustdoc by default, since `download-rustc` makes it quick to compile.
14doc-stage = 2
15# Contributors working on tools will probably expect compiler docs to be generated, so they can figure out how to use the API.
16compiler-docs = true
17
18[llvm]
19# Will download LLVM from CI if available on your platform.
20# If you intend to modify `src/llvm-project`, use `"if-unchanged"` or `false` instead.
21download-ci-llvm = true
src/bootstrap/defaults/config.compiler.toml deleted-37
......@@ -1,37 +0,0 @@
1# These defaults are meant for contributors to the compiler who do not modify codegen or LLVM
2[build]
3# Contributors working on the compiler will probably expect compiler docs to be generated.
4compiler-docs = true
5
6[rust]
7# This enables `RUSTC_LOG=debug`, avoiding confusing situations
8# where adding `debug!()` appears to do nothing.
9# However, it makes running the compiler slightly slower.
10debug-logging = true
11# Enables debug assertions, which guard from many mistakes when working on the compiler.
12debug-assertions = true
13# Get actually-useful information from backtraces, profiling, etc. with minimal added bytes
14debuginfo-level = "line-tables-only"
15# This greatly increases the speed of rebuilds, especially when there are only minor changes. However, it makes the initial build slightly slower.
16incremental = true
17# Print backtrace on internal compiler errors during bootstrap
18backtrace-on-ice = true
19# Make the compiler and standard library faster to build, at the expense of a ~20% runtime slowdown.
20lto = "off"
21# Forces frame pointers to be used with `-Cforce-frame-pointers`.
22# This can be helpful for profiling at a small performance cost.
23frame-pointers = true
24# Compiler contributors often want to build rustc even without any changes to
25# e.g. check that it builds locally and check the baseline behavior of a
26# compiler built from latest `master` commit.
27download-rustc = false
28
29[llvm]
30# Having this set to true disrupts compiler development workflows for people who use `llvm.download-ci-llvm = true`
31# because we don't provide ci-llvm on the `rustc-alt-builds` server. Therefore, it is kept off by default.
32assertions = false
33# Enable warnings during the LLVM compilation (when LLVM is changed, causing a compilation)
34enable-warnings = true
35# Will download LLVM from CI if available on your platform.
36# If you intend to modify `src/llvm-project`, use `"if-unchanged"` or `false` instead.
37download-ci-llvm = true
src/bootstrap/defaults/config.dist.toml deleted-27
......@@ -1,27 +0,0 @@
1# These defaults are meant for users and distro maintainers building from source, without intending to make multiple changes.
2[build]
3# When compiling from source, you almost always want a full stage 2 build,
4# which has all the latest optimizations from nightly.
5build-stage = 2
6test-stage = 2
7doc-stage = 2
8# When compiling from source, you usually want all tools.
9extended = true
10
11# Most users installing from source want to build all parts of the project from source.
12[llvm]
13download-ci-llvm = false
14
15[rust]
16# We have several defaults in bootstrap that depend on whether the channel is `dev` (e.g. `omit-git-hash` and `download-ci-llvm`).
17# Make sure they don't get set when installing from source.
18channel = "nightly"
19# Never download a rustc, distributions must build a fresh compiler.
20download-rustc = false
21lld = true
22# Build the llvm-bitcode-linker
23llvm-bitcode-linker = true
24
25[dist]
26# Use better compression when preparing tarballs.
27compression-profile = "balanced"
src/bootstrap/defaults/config.library.toml deleted-20
......@@ -1,20 +0,0 @@
1# These defaults are meant for contributors to the standard library and documentation.
2[build]
3# When building the standard library, you almost never want to build the compiler itself.
4build-stage = 0
5test-stage = 0
6bench-stage = 0
7
8[rust]
9# This greatly increases the speed of rebuilds, especially when there are only minor changes. However, it makes the initial build slightly slower.
10incremental = true
11# Make the compiler and standard library faster to build, at the expense of a ~20% runtime slowdown.
12lto = "off"
13# Download rustc by default for library profile if compiler-affecting
14# directories are not modified. For CI this is disabled.
15download-rustc = "if-unchanged"
16
17[llvm]
18# Will download LLVM from CI if available on your platform.
19# If you intend to modify `src/llvm-project`, use `"if-unchanged"` or `false` instead.
20download-ci-llvm = true
src/bootstrap/defaults/config.tools.toml deleted-21
......@@ -1,21 +0,0 @@
1# These defaults are meant for contributors to tools which build on the
2# compiler, but do not modify it directly.
3[rust]
4# This greatly increases the speed of rebuilds, especially when there are only minor changes. However, it makes the initial build slightly slower.
5incremental = true
6# Most commonly, tools contributors do not need to modify the compiler, so
7# downloading a CI rustc is a good default for tools profile.
8download-rustc = "if-unchanged"
9
10[build]
11# cargo and clippy tests don't pass on stage 1
12test-stage = 2
13# Document with the in-tree rustdoc by default, since `download-rustc` makes it quick to compile.
14doc-stage = 2
15# Contributors working on tools will probably expect compiler docs to be generated, so they can figure out how to use the API.
16compiler-docs = true
17
18[llvm]
19# Will download LLVM from CI if available on your platform.
20# If you intend to modify `src/llvm-project`, use `"if-unchanged"` or `false` instead.
21download-ci-llvm = true
src/bootstrap/src/bin/main.rs+13-11
......@@ -77,14 +77,14 @@ fn main() {
7777 check_version(&config)
7878 };
7979
80 // NOTE: Since `./configure` generates a `config.toml`, distro maintainers will see the
80 // NOTE: Since `./configure` generates a `bootstrap.toml`, distro maintainers will see the
8181 // changelog warning, not the `x.py setup` message.
8282 let suggest_setup = config.config.is_none() && !matches!(config.cmd, Subcommand::Setup { .. });
8383 if suggest_setup {
84 println!("WARNING: you have not made a `config.toml`");
84 println!("WARNING: you have not made a `bootstrap.toml`");
8585 println!(
86 "HELP: consider running `./x.py setup` or copying `config.example.toml` by running \
87 `cp config.example.toml config.toml`"
86 "HELP: consider running `./x.py setup` or copying `bootstrap.example.toml` by running \
87 `cp bootstrap.example.toml bootstrap.toml`"
8888 );
8989 } else if let Some(suggestion) = &changelog_suggestion {
9090 println!("{suggestion}");
......@@ -98,10 +98,10 @@ fn main() {
9898 Build::new(config).build();
9999
100100 if suggest_setup {
101 println!("WARNING: you have not made a `config.toml`");
101 println!("WARNING: you have not made a `bootstrap.toml`");
102102 println!(
103 "HELP: consider running `./x.py setup` or copying `config.example.toml` by running \
104 `cp config.example.toml config.toml`"
103 "HELP: consider running `./x.py setup` or copying `bootstrap.example.toml` by running \
104 `cp bootstrap.example.toml bootstrap.toml`"
105105 );
106106 } else if let Some(suggestion) = &changelog_suggestion {
107107 println!("{suggestion}");
......@@ -160,7 +160,7 @@ fn check_version(config: &Config) -> Option<String> {
160160 }
161161
162162 // Always try to use `change-id` from .last-warned-change-id first. If it doesn't exist,
163 // then use the one from the config.toml. This way we never show the same warnings
163 // then use the one from the bootstrap.toml. This way we never show the same warnings
164164 // more than once.
165165 if let Ok(t) = fs::read_to_string(&warned_id_path) {
166166 let last_warned_id = usize::from_str(&t)
......@@ -185,16 +185,18 @@ fn check_version(config: &Config) -> Option<String> {
185185
186186 msg.push_str("NOTE: to silence this warning, ");
187187 msg.push_str(&format!(
188 "update `config.toml` to use `change-id = {latest_change_id}` instead"
188 "update `bootstrap.toml` to use `change-id = {latest_change_id}` instead"
189189 ));
190190
191191 if io::stdout().is_terminal() {
192192 t!(fs::write(warned_id_path, latest_change_id.to_string()));
193193 }
194194 } else {
195 msg.push_str("WARNING: The `change-id` is missing in the `config.toml`. This means that you will not be able to track the major changes made to the bootstrap configurations.\n");
195 msg.push_str("WARNING: The `change-id` is missing in the `bootstrap.toml`. This means that you will not be able to track the major changes made to the bootstrap configurations.\n");
196196 msg.push_str("NOTE: to silence this warning, ");
197 msg.push_str(&format!("add `change-id = {latest_change_id}` at the top of `config.toml`"));
197 msg.push_str(&format!(
198 "add `change-id = {latest_change_id}` at the top of `bootstrap.toml`"
199 ));
198200 };
199201
200202 Some(msg)
src/bootstrap/src/core/build_steps/compile.rs+4-4
......@@ -425,7 +425,7 @@ fn copy_self_contained_objects(
425425 } else if target.contains("-wasi") {
426426 let srcdir = builder.wasi_libdir(target).unwrap_or_else(|| {
427427 panic!(
428 "Target {:?} does not have a \"wasi-root\" key in Config.toml \
428 "Target {:?} does not have a \"wasi-root\" key in bootstrap.toml \
429429 or `$WASI_SDK_PATH` set",
430430 target.triple
431431 )
......@@ -1294,7 +1294,7 @@ pub fn rustc_cargo_env(
12941294 .env("CFG_VERSION", builder.rust_version());
12951295
12961296 // Some tools like Cargo detect their own git information in build scripts. When omit-git-hash
1297 // is enabled in config.toml, we pass this environment variable to tell build scripts to avoid
1297 // is enabled in bootstrap.toml, we pass this environment variable to tell build scripts to avoid
12981298 // detecting git information on their own.
12991299 if builder.config.omit_git_hash {
13001300 cargo.env("CFG_OMIT_GIT_HASH", "1");
......@@ -1538,7 +1538,7 @@ fn is_codegen_cfg_needed(path: &TaskPath, run: &RunConfig<'_>) -> bool {
15381538 {
15391539 run.builder.info(
15401540 "WARNING: no codegen-backends config matched the requested path to build a codegen backend. \
1541 HELP: add backend to codegen-backends in config.toml.",
1541 HELP: add backend to codegen-backends in bootstrap.toml.",
15421542 );
15431543 return true;
15441544 }
......@@ -1550,7 +1550,7 @@ fn is_codegen_cfg_needed(path: &TaskPath, run: &RunConfig<'_>) -> bool {
15501550impl Step for CodegenBackend {
15511551 type Output = ();
15521552 const ONLY_HOSTS: bool = true;
1553 /// Only the backends specified in the `codegen-backends` entry of `config.toml` are built.
1553 /// Only the backends specified in the `codegen-backends` entry of `bootstrap.toml` are built.
15541554 const DEFAULT: bool = true;
15551555
15561556 fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
src/bootstrap/src/core/build_steps/dist.rs+1-1
......@@ -1000,9 +1000,9 @@ impl Step for PlainSourceTarball {
10001000 let src_files = [
10011001 // tidy-alphabetical-start
10021002 ".gitmodules",
1003 "bootstrap.example.toml",
10031004 "Cargo.lock",
10041005 "Cargo.toml",
1005 "config.example.toml",
10061006 "configure",
10071007 "CONTRIBUTING.md",
10081008 "COPYRIGHT",
src/bootstrap/src/core/build_steps/doc.rs+1-1
......@@ -1218,7 +1218,7 @@ impl Step for RustcBook {
12181218 cmd.env("RUSTC_BOOTSTRAP", "1");
12191219
12201220 // If the lib directories are in an unusual location (changed in
1221 // config.toml), then this needs to explicitly update the dylib search
1221 // bootstrap.toml), then this needs to explicitly update the dylib search
12221222 // path.
12231223 builder.add_rustc_lib_path(self.compiler, &mut cmd);
12241224 let doc_generator_guard = builder.msg(
src/bootstrap/src/core/build_steps/install.rs+2-2
......@@ -85,11 +85,11 @@ fn install_sh(
8585 } else {
8686 assert!(
8787 is_dir_writable_for_user(&prefix),
88 "User doesn't have write access on `install.prefix` path in the `config.toml`.",
88 "User doesn't have write access on `install.prefix` path in the `bootstrap.toml`.",
8989 );
9090 assert!(
9191 is_dir_writable_for_user(&sysconfdir),
92 "User doesn't have write access on `install.sysconfdir` path in `config.toml`."
92 "User doesn't have write access on `install.sysconfdir` path in `bootstrap.toml`."
9393 );
9494 }
9595
src/bootstrap/src/core/build_steps/llvm.rs+1-1
......@@ -350,7 +350,7 @@ impl Step for Llvm {
350350 (true, true) => "RelWithDebInfo",
351351 };
352352
353 // NOTE: remember to also update `config.example.toml` when changing the
353 // NOTE: remember to also update `bootstrap.example.toml` when changing the
354354 // defaults!
355355 let llvm_targets = match &builder.config.llvm_targets {
356356 Some(s) => s,
src/bootstrap/src/core/build_steps/perf.rs+1-1
......@@ -147,7 +147,7 @@ pub fn perf(builder: &Builder<'_>, args: &PerfArgs) {
147147 };
148148 if is_profiling && builder.build.config.rust_debuginfo_level_rustc == DebuginfoLevel::None {
149149 builder.info(r#"WARNING: You are compiling rustc without debuginfo, this will make profiling less useful.
150Consider setting `rust.debuginfo-level = 1` in `config.toml`."#);
150Consider setting `rust.debuginfo-level = 1` in `bootstrap.toml`."#);
151151 }
152152
153153 let compiler = builder.compiler(builder.top_stage, builder.config.build);
src/bootstrap/src/core/build_steps/run.rs+2-2
......@@ -35,10 +35,10 @@ impl Step for BuildManifest {
3535 // (https://github.com/rust-lang/promote-release).
3636 let mut cmd = builder.tool_cmd(Tool::BuildManifest);
3737 let sign = builder.config.dist_sign_folder.as_ref().unwrap_or_else(|| {
38 panic!("\n\nfailed to specify `dist.sign-folder` in `config.toml`\n\n")
38 panic!("\n\nfailed to specify `dist.sign-folder` in `bootstrap.toml`\n\n")
3939 });
4040 let addr = builder.config.dist_upload_addr.as_ref().unwrap_or_else(|| {
41 panic!("\n\nfailed to specify `dist.upload-addr` in `config.toml`\n\n")
41 panic!("\n\nfailed to specify `dist.upload-addr` in `bootstrap.toml`\n\n")
4242 });
4343
4444 let today = command("date").arg("+%Y-%m-%d").run_capture_stdout(builder).stdout();
src/bootstrap/src/core/build_steps/setup.rs+6-6
......@@ -2,8 +2,8 @@
22//!
33//! These are build-and-run steps for `./x.py setup`, which allows quickly setting up the directory
44//! for modifying, building, and running the compiler and library. Running arbitrary configuration
5//! allows setting up things that cannot be simply captured inside the config.toml, in addition to
6//! leading people away from manually editing most of the config.toml values.
5//! allows setting up things that cannot be simply captured inside the bootstrap.toml, in addition to
6//! leading people away from manually editing most of the bootstrap.toml values.
77
88use std::env::consts::EXE_SUFFIX;
99use std::fmt::Write as _;
......@@ -37,7 +37,7 @@ static PROFILE_DIR: &str = "src/bootstrap/defaults";
3737
3838impl Profile {
3939 fn include_path(&self, src_path: &Path) -> PathBuf {
40 PathBuf::from(format!("{}/{PROFILE_DIR}/config.{}.toml", src_path.display(), self))
40 PathBuf::from(format!("{}/{PROFILE_DIR}/bootstrap.{}.toml", src_path.display(), self))
4141 }
4242
4343 pub fn all() -> impl Iterator<Item = Self> {
......@@ -53,7 +53,7 @@ impl Profile {
5353 Compiler => "Contribute to the compiler itself",
5454 Tools => "Contribute to tools which depend on the compiler, but do not modify it directly (e.g. rustdoc, clippy, miri)",
5555 Dist => "Install Rust from source",
56 None => "Do not modify `config.toml`"
56 None => "Do not modify `bootstrap.toml`"
5757 }
5858 .to_string()
5959 }
......@@ -117,7 +117,7 @@ impl Step for Profile {
117117 return;
118118 }
119119
120 let path = &run.builder.config.config.clone().unwrap_or(PathBuf::from("config.toml"));
120 let path = &run.builder.config.config.clone().unwrap_or(PathBuf::from("bootstrap.toml"));
121121 if path.exists() {
122122 eprintln!();
123123 eprintln!(
......@@ -203,7 +203,7 @@ pub fn setup(config: &Config, profile: Profile) {
203203 )
204204 }
205205
206 let path = &config.config.clone().unwrap_or(PathBuf::from("config.toml"));
206 let path = &config.config.clone().unwrap_or(PathBuf::from("bootstrap.toml"));
207207 setup_config_toml(path, profile, config);
208208}
209209
src/bootstrap/src/core/build_steps/test.rs+1-1
......@@ -1119,7 +1119,7 @@ impl Step for Tidy {
11191119 "\
11201120ERROR: no `rustfmt` binary found in {PATH}
11211121INFO: `rust.channel` is currently set to \"{CHAN}\"
1122HELP: if you are testing a beta branch, set `rust.channel` to \"beta\" in the `config.toml` file
1122HELP: if you are testing a beta branch, set `rust.channel` to \"beta\" in the `bootstrap.toml` file
11231123HELP: to skip test's attempt to check tidiness, pass `--skip src/tools/tidy` to `x.py test`",
11241124 PATH = inferred_rustfmt_dir.display(),
11251125 CHAN = builder.config.channel,
src/bootstrap/src/core/build_steps/toolstate.rs+2-2
......@@ -128,7 +128,7 @@ impl Step for ToolStateCheck {
128128 /// Checks tool state status.
129129 ///
130130 /// This is intended to be used in the `checktools.sh` script. To use
131 /// this, set `save-toolstates` in `config.toml` so that tool status will
131 /// this, set `save-toolstates` in `bootstrap.toml` so that tool status will
132132 /// be saved to a JSON file. Then, run `x.py test --no-fail-fast` for all
133133 /// of the tools to populate the JSON file. After that is done, this
134134 /// command can be run to check for any status failures, and exits with an
......@@ -254,7 +254,7 @@ impl Builder<'_> {
254254 /// Updates the actual toolstate of a tool.
255255 ///
256256 /// The toolstates are saved to the file specified by the key
257 /// `rust.save-toolstates` in `config.toml`. If unspecified, nothing will be
257 /// `rust.save-toolstates` in `bootstrap.toml`. If unspecified, nothing will be
258258 /// done. The file is updated immediately after this function completes.
259259 pub fn save_toolstate(&self, tool: &str, state: ToolState) {
260260 use std::io::Write;
src/bootstrap/src/core/builder/cargo.rs+1-1
......@@ -215,7 +215,7 @@ impl Cargo {
215215 // dynamic libraries. We use this by default on Unix platforms to ensure
216216 // that our nightlies behave the same on Windows, that is they work out
217217 // of the box. This can be disabled by setting `rpath = false` in `[rust]`
218 // table of `config.toml`
218 // table of `bootstrap.toml`
219219 //
220220 // Ok, so the astute might be wondering "why isn't `-C rpath` used
221221 // here?" and that is indeed a good question to ask. This codegen
src/bootstrap/src/core/builder/mod.rs+3-3
......@@ -31,9 +31,9 @@ mod cargo;
3131mod tests;
3232
3333/// Builds and performs different [`Self::kind`]s of stuff and actions, taking
34/// into account build configuration from e.g. config.toml.
34/// into account build configuration from e.g. bootstrap.toml.
3535pub struct Builder<'a> {
36 /// Build configuration from e.g. config.toml.
36 /// Build configuration from e.g. bootstrap.toml.
3737 pub build: &'a Build,
3838
3939 /// The stage to use. Either implicitly determined based on subcommand, or
......@@ -332,7 +332,7 @@ impl PathSet {
332332}
333333
334334const PATH_REMAP: &[(&str, &[&str])] = &[
335 // config.toml uses `rust-analyzer-proc-macro-srv`, but the
335 // bootstrap.toml uses `rust-analyzer-proc-macro-srv`, but the
336336 // actual path is `proc-macro-srv-cli`
337337 ("rust-analyzer-proc-macro-srv", &["src/tools/rust-analyzer/crates/proc-macro-srv-cli"]),
338338 // Make `x test tests` function the same as `x t tests/*`
src/bootstrap/src/core/config/config.rs+32-21
......@@ -1,6 +1,6 @@
11//! Serialized configuration of a build.
22//!
3//! This module implements parsing `config.toml` configuration files to tweak
3//! This module implements parsing `bootstrap.toml` configuration files to tweak
44//! how the build runs.
55
66use std::cell::{Cell, RefCell};
......@@ -64,7 +64,7 @@ macro_rules! check_ci_llvm {
6464/// useful in scenarios where developers want to see how the tarball sources were
6565/// generated.
6666///
67/// We also use this file to compare the host's config.toml against the CI rustc builder
67/// We also use this file to compare the host's bootstrap.toml against the CI rustc builder
6868/// configuration to detect any incompatible options.
6969pub(crate) const BUILDER_CONFIG_FILENAME: &str = "builder-config";
7070
......@@ -184,12 +184,12 @@ pub enum GccCiMode {
184184
185185/// Global configuration for the entire build and/or bootstrap.
186186///
187/// This structure is parsed from `config.toml`, and some of the fields are inferred from `git` or build-time parameters.
187/// This structure is parsed from `bootstrap.toml`, and some of the fields are inferred from `git` or build-time parameters.
188188///
189189/// Note that this structure is not decoded directly into, but rather it is
190190/// filled out from the decoded forms of the structs below. For documentation
191191/// each field, see the corresponding fields in
192/// `config.example.toml`.
192/// `bootstrap.example.toml`.
193193#[derive(Default, Clone)]
194194pub struct Config {
195195 pub change_id: Option<usize>,
......@@ -235,7 +235,7 @@ pub struct Config {
235235 pub keep_stage: Vec<u32>,
236236 pub keep_stage_std: Vec<u32>,
237237 pub src: PathBuf,
238 /// defaults to `config.toml`
238 /// defaults to `bootstrap.toml`
239239 pub config: Option<PathBuf>,
240240 pub jobs: Option<u32>,
241241 pub cmd: Subcommand,
......@@ -470,7 +470,7 @@ impl std::str::FromStr for SplitDebuginfo {
470470
471471impl SplitDebuginfo {
472472 /// Returns the default `-Csplit-debuginfo` value for the current target. See the comment for
473 /// `rust.split-debuginfo` in `config.example.toml`.
473 /// `rust.split-debuginfo` in `bootstrap.example.toml`.
474474 fn default_for_platform(target: TargetSelection) -> Self {
475475 if target.contains("apple") {
476476 SplitDebuginfo::Unpacked
......@@ -677,7 +677,7 @@ impl Target {
677677 target
678678 }
679679}
680/// Structure of the `config.toml` file that configuration is read from.
680/// Structure of the `bootstrap.toml` file that configuration is read from.
681681///
682682/// This structure uses `Decodable` to automatically decode a TOML configuration
683683/// file into this format, and then this is traversed and written into the above
......@@ -1485,26 +1485,35 @@ impl Config {
14851485
14861486 config.stage0_metadata = build_helper::stage0_parser::parse_stage0_file();
14871487
1488 // Find configuration file, with the following cascading fallback (first match wins):
1489 // - `--config <path>`
1490 // - `RUST_BOOTSTRAP_CONFIG`
1491 // - `./config.toml`
1492 // - `config.toml` in the root directory.
1488 // Locate the configuration file using the following priority (first match wins):
1489 // 1. `--config <path>` (explicit flag)
1490 // 2. `RUST_BOOTSTRAP_CONFIG` environment variable
1491 // 3. `./bootstrap.toml` (local file)
1492 // 4. `<root>/bootstrap.toml`
1493 // 5. `./config.toml` (fallback for backward compatibility)
1494 // 6. `<root>/config.toml`
14931495 let toml_path = flags
14941496 .config
14951497 .clone()
14961498 .or_else(|| env::var_os("RUST_BOOTSTRAP_CONFIG").map(PathBuf::from));
14971499 let using_default_path = toml_path.is_none();
1498 let mut toml_path = toml_path.unwrap_or_else(|| PathBuf::from("config.toml"));
1500 let mut toml_path = toml_path.unwrap_or_else(|| PathBuf::from("bootstrap.toml"));
1501
14991502 if using_default_path && !toml_path.exists() {
1500 toml_path = config.src.join(toml_path);
1503 toml_path = config.src.join(PathBuf::from("bootstrap.toml"));
1504 if !toml_path.exists() {
1505 toml_path = PathBuf::from("config.toml");
1506 if !toml_path.exists() {
1507 toml_path = config.src.join(PathBuf::from("config.toml"));
1508 }
1509 }
15011510 }
15021511
15031512 let file_content = t!(fs::read_to_string(config.src.join("src/ci/channel")));
15041513 let ci_channel = file_content.trim_end();
15051514
15061515 // Give a hard error if `--config` or `RUST_BOOTSTRAP_CONFIG` are set to a missing path,
1507 // but not if `config.toml` hasn't been created.
1516 // but not if `bootstrap.toml` hasn't been created.
15081517 let mut toml = if !using_default_path || toml_path.exists() {
15091518 config.config = Some(if cfg!(not(test)) {
15101519 toml_path.canonicalize().unwrap()
......@@ -1525,7 +1534,7 @@ impl Config {
15251534 // same ones used to call the tests (if custom ones are not defined in the toml). If we
15261535 // don't do that, bootstrap will use its own detection logic to find a suitable rustc
15271536 // and Cargo, which doesn't work when the caller is specìfying a custom local rustc or
1528 // Cargo in their config.toml.
1537 // Cargo in their bootstrap.toml.
15291538 let build = toml.build.get_or_insert_with(Default::default);
15301539 build.rustc = build.rustc.take().or(std::env::var_os("RUSTC").map(|p| p.into()));
15311540 build.cargo = build.cargo.take().or(std::env::var_os("CARGO").map(|p| p.into()));
......@@ -1548,7 +1557,7 @@ impl Config {
15481557 include_path.push("src");
15491558 include_path.push("bootstrap");
15501559 include_path.push("defaults");
1551 include_path.push(format!("config.{include}.toml"));
1560 include_path.push(format!("bootstrap.{include}.toml"));
15521561 let included_toml = get_toml(&include_path).unwrap_or_else(|e| {
15531562 eprintln!(
15541563 "ERROR: Failed to parse default config profile at '{}': {e}",
......@@ -2030,7 +2039,7 @@ impl Config {
20302039 config.description = description;
20312040
20322041 // We need to override `rust.channel` if it's manually specified when using the CI rustc.
2033 // This is because if the compiler uses a different channel than the one specified in config.toml,
2042 // This is because if the compiler uses a different channel than the one specified in bootstrap.toml,
20342043 // tests may fail due to using a different channel than the one used by the compiler during tests.
20352044 if let Some(commit) = &config.download_rustc_commit {
20362045 if is_user_configured_rust_channel {
......@@ -2655,7 +2664,7 @@ impl Config {
26552664 return None;
26562665 },
26572666 Err(e) => {
2658 eprintln!("ERROR: Failed to parse CI rustc config.toml: {e}");
2667 eprintln!("ERROR: Failed to parse CI rustc bootstrap.toml: {e}");
26592668 exit!(2);
26602669 },
26612670 };
......@@ -2818,7 +2827,7 @@ impl Config {
28182827 ///
28192828 /// `relative_path` should be relative to the root of the git repository, not an absolute path.
28202829 ///
2821 /// This *does not* update the submodule if `config.toml` explicitly says
2830 /// This *does not* update the submodule if `bootstrap.toml` explicitly says
28222831 /// not to, or if we're not in a git repository (like a plain source
28232832 /// tarball). Typically [`crate::Build::require_submodule`] should be
28242833 /// used instead to provide a nice error to the user if the submodule is
......@@ -3042,7 +3051,9 @@ impl Config {
30423051 }
30433052 println!("ERROR: could not find commit hash for downloading rustc");
30443053 println!("HELP: maybe your repository history is too shallow?");
3045 println!("HELP: consider setting `rust.download-rustc=false` in config.toml");
3054 println!(
3055 "HELP: consider setting `rust.download-rustc=false` in bootstrap.toml"
3056 );
30463057 println!("HELP: or fetch enough history to include one upstream commit");
30473058 crate::exit!(1);
30483059 }
src/bootstrap/src/core/config/flags.rs+4-4
......@@ -54,7 +54,7 @@ pub struct Flags {
5454 /// TOML configuration file for build
5555 pub config: Option<PathBuf>,
5656 #[arg(global = true, long, value_hint = clap::ValueHint::DirPath, value_name = "DIR")]
57 /// Build directory, overrides `build.build-dir` in `config.toml`
57 /// Build directory, overrides `build.build-dir` in `bootstrap.toml`
5858 pub build_dir: Option<PathBuf>,
5959
6060 #[arg(global = true, long, value_hint = clap::ValueHint::Other, value_name = "BUILD")]
......@@ -173,7 +173,7 @@ pub struct Flags {
173173 #[arg(global = true)]
174174 /// paths for the subcommand
175175 pub paths: Vec<PathBuf>,
176 /// override options in config.toml
176 /// override options in bootstrap.toml
177177 #[arg(global = true, value_hint = clap::ValueHint::Other, long, value_name = "section.option=value")]
178178 pub set: Vec<String>,
179179 /// arguments passed to subcommands
......@@ -448,7 +448,7 @@ pub enum Subcommand {
448448 /// Set up the environment for development
449449 #[command(long_about = format!(
450450 "\n
451x.py setup creates a `config.toml` which changes the defaults for x.py itself,
451x.py setup creates a `bootstrap.toml` which changes the defaults for x.py itself,
452452as well as setting up a git pre-push hook, VS Code config and toolchain link.
453453Arguments:
454454 This subcommand accepts a 'profile' to use for builds. For example:
......@@ -461,7 +461,7 @@ Arguments:
461461 ./x.py setup editor
462462 ./x.py setup link", Profile::all_for_help(" ").trim_end()))]
463463 Setup {
464 /// Either the profile for `config.toml` or another setup action.
464 /// Either the profile for `bootstrap.toml` or another setup action.
465465 /// May be omitted to set up interactively
466466 #[arg(value_name = "<PROFILE>|hook|editor|link")]
467467 profile: Option<PathBuf>,
src/bootstrap/src/core/config/tests.rs+12-10
......@@ -69,7 +69,7 @@ fn detect_src_and_out() {
6969 let expected_src = manifest_dir.ancestors().nth(2).unwrap();
7070 assert_eq!(&cfg.src, expected_src);
7171
72 // test if build-dir was manually given in config.toml
72 // test if build-dir was manually given in bootstrap.toml
7373 if let Some(custom_build_dir) = build_dir {
7474 assert_eq!(&cfg.out, Path::new(custom_build_dir));
7575 }
......@@ -229,13 +229,15 @@ fn override_toml_duplicate() {
229229#[test]
230230fn profile_user_dist() {
231231 fn get_toml(file: &Path) -> Result<TomlConfig, toml::de::Error> {
232 let contents =
233 if file.ends_with("config.toml") || env::var_os("RUST_BOOTSTRAP_CONFIG").is_some() {
234 "profile = \"user\"".to_owned()
235 } else {
236 assert!(file.ends_with("config.dist.toml"));
237 std::fs::read_to_string(file).unwrap()
238 };
232 let contents = if file.ends_with("bootstrap.toml")
233 || file.ends_with("config.toml")
234 || env::var_os("RUST_BOOTSTRAP_CONFIG").is_some()
235 {
236 "profile = \"user\"".to_owned()
237 } else {
238 assert!(file.ends_with("config.dist.toml") || file.ends_with("bootstrap.dist.toml"));
239 std::fs::read_to_string(file).unwrap()
240 };
239241
240242 toml::from_str(&contents).and_then(|table: toml::Value| TomlConfig::deserialize(table))
241243 }
......@@ -402,7 +404,7 @@ fn jobs_precedence() {
402404 );
403405 assert_eq!(config.jobs, Some(67890));
404406
405 // `--set build.jobs` should take precedence over `config.toml`.
407 // `--set build.jobs` should take precedence over `bootstrap.toml`.
406408 let config = Config::parse_inner(
407409 Flags::parse(&[
408410 "check".to_owned(),
......@@ -420,7 +422,7 @@ fn jobs_precedence() {
420422 );
421423 assert_eq!(config.jobs, Some(12345));
422424
423 // `--jobs` > `--set build.jobs` > `config.toml`
425 // `--jobs` > `--set build.jobs` > `bootstrap.toml`
424426 let config = Config::parse_inner(
425427 Flags::parse(&[
426428 "check".to_owned(),
src/bootstrap/src/core/download.rs+5-5
......@@ -124,7 +124,7 @@ impl Config {
124124 if let Ok(in_nix_shell) = in_nix_shell {
125125 eprintln!(
126126 "The IN_NIX_SHELL environment variable is `{in_nix_shell}`; \
127 you may need to set `patch-binaries-for-nix=true` in config.toml"
127 you may need to set `patch-binaries-for-nix=true` in bootstrap.toml"
128128 );
129129 }
130130 }
......@@ -699,7 +699,7 @@ impl Config {
699699 help_on_error = "ERROR: failed to download pre-built rustc from CI
700700
701701NOTE: old builds get deleted after a certain time
702HELP: if trying to compile an old commit of rustc, disable `download-rustc` in config.toml:
702HELP: if trying to compile an old commit of rustc, disable `download-rustc` in bootstrap.toml:
703703
704704[rust]
705705download-rustc = false
......@@ -783,7 +783,7 @@ download-rustc = false
783783 println!("HELP: Consider rebasing to a newer commit if available.");
784784 }
785785 Err(e) => {
786 eprintln!("ERROR: Failed to parse CI LLVM config.toml: {e}");
786 eprintln!("ERROR: Failed to parse CI LLVM bootstrap.toml: {e}");
787787 exit!(2);
788788 }
789789 };
......@@ -816,7 +816,7 @@ download-rustc = false
816816 HELP: There could be two reasons behind this:
817817 1) The host triple is not supported for `download-ci-llvm`.
818818 2) Old builds get deleted after a certain time.
819 HELP: In either case, disable `download-ci-llvm` in your config.toml:
819 HELP: In either case, disable `download-ci-llvm` in your bootstrap.toml:
820820
821821 [llvm]
822822 download-ci-llvm = false
......@@ -845,7 +845,7 @@ download-rustc = false
845845 HELP: There could be two reasons behind this:
846846 1) The host triple is not supported for `download-ci-gcc`.
847847 2) Old builds get deleted after a certain time.
848 HELP: In either case, disable `download-ci-gcc` in your config.toml:
848 HELP: In either case, disable `download-ci-gcc` in your bootstrap.toml:
849849
850850 [gcc]
851851 download-ci-gcc = false
src/bootstrap/src/core/sanity.rs+2-2
......@@ -153,7 +153,7 @@ pub fn check(build: &mut Build) {
153153Couldn't find required command: cmake
154154
155155You should install cmake, or set `download-ci-llvm = true` in the
156`[llvm]` section of `config.toml` to download LLVM rather
156`[llvm]` section of `bootstrap.toml` to download LLVM rather
157157than building it.
158158"
159159 );
......@@ -339,7 +339,7 @@ than building it.
339339 None => panic!(
340340 "when targeting MUSL either the rust.musl-root \
341341 option or the target.$TARGET.musl-root option must \
342 be specified in config.toml"
342 be specified in bootstrap.toml"
343343 ),
344344 }
345345 }
src/bootstrap/src/lib.rs+4-4
......@@ -143,7 +143,7 @@ pub enum GitRepo {
143143/// organize).
144144#[derive(Clone)]
145145pub struct Build {
146 /// User-specified configuration from `config.toml`.
146 /// User-specified configuration from `bootstrap.toml`.
147147 config: Config,
148148
149149 // Version information
......@@ -538,7 +538,7 @@ impl Build {
538538 /// This avoids contributors checking in a submodule change by accident.
539539 fn update_existing_submodules(&self) {
540540 // Avoid running git when there isn't a git checkout, or the user has
541 // explicitly disabled submodules in `config.toml`.
541 // explicitly disabled submodules in `bootstrap.toml`.
542542 if !self.config.submodules() {
543543 return;
544544 }
......@@ -671,7 +671,7 @@ impl Build {
671671 }
672672
673673 /// Gets the space-separated set of activated features for the standard library.
674 /// This can be configured with the `std-features` key in config.toml.
674 /// This can be configured with the `std-features` key in bootstrap.toml.
675675 fn std_features(&self, target: TargetSelection) -> String {
676676 let mut features: BTreeSet<&str> =
677677 self.config.rust_std_features.iter().map(|s| s.as_str()).collect();
......@@ -1925,7 +1925,7 @@ Couldn't find required command: ninja (or ninja-build)
19251925
19261926You should install ninja as described at
19271927<https://github.com/ninja-build/ninja/wiki/Pre-built-Ninja-packages>,
1928or set `ninja = false` in the `[llvm]` section of `config.toml`.
1928or set `ninja = false` in the `[llvm]` section of `bootstrap.toml`.
19291929Alternatively, set `download-ci-llvm = true` in that `[llvm]` section
19301930to download LLVM rather than building it.
19311931"
src/bootstrap/src/utils/cc_detect.rs+5-5
......@@ -4,8 +4,8 @@
44//! C and C++ compilers for each target configured. A compiler is found through
55//! a number of vectors (in order of precedence)
66//!
7//! 1. Configuration via `target.$target.cc` in `config.toml`.
8//! 2. Configuration via `target.$target.android-ndk` in `config.toml`, if
7//! 1. Configuration via `target.$target.cc` in `bootstrap.toml`.
8//! 2. Configuration via `target.$target.android-ndk` in `bootstrap.toml`, if
99//! applicable
1010//! 3. Special logic to probe on OpenBSD
1111//! 4. The `CC_$target` environment variable.
......@@ -122,7 +122,7 @@ pub fn find(build: &Build) {
122122
123123/// Probes and configures the C and C++ compilers for a single target.
124124///
125/// This function uses both user-specified configuration (from `config.toml`) and auto-detection
125/// This function uses both user-specified configuration (from `bootstrap.toml`) and auto-detection
126126/// logic to determine the correct C/C++ compilers for the target. It also determines the appropriate
127127/// archiver (`ar`) and sets up additional compilation flags (both handled and unhandled).
128128pub fn find_target(build: &Build, target: TargetSelection) {
......@@ -186,7 +186,7 @@ pub fn find_target(build: &Build, target: TargetSelection) {
186186}
187187
188188/// Determines the default compiler for a given target and language when not explicitly
189/// configured in `config.toml`.
189/// configured in `bootstrap.toml`.
190190fn default_compiler(
191191 cfg: &mut cc::Build,
192192 compiler: Language,
......@@ -195,7 +195,7 @@ fn default_compiler(
195195) -> Option<PathBuf> {
196196 match &*target.triple {
197197 // When compiling for android we may have the NDK configured in the
198 // config.toml in which case we look there. Otherwise the default
198 // bootstrap.toml in which case we look there. Otherwise the default
199199 // compiler already takes into account the triple in question.
200200 t if t.contains("android") => {
201201 build.config.android_ndk.as_ref().map(|ndk| ndk_compiler(compiler, &target.triple, ndk))
src/bootstrap/src/utils/change_tracker.rs+5
......@@ -385,4 +385,9 @@ pub const CONFIG_CHANGE_HISTORY: &[ChangeInfo] = &[
385385 severity: ChangeSeverity::Info,
386386 summary: "Added new option `build.exclude` which works the same way as `--exclude` flag on `x`.",
387387 },
388 ChangeInfo {
389 change_id: 137081,
390 severity: ChangeSeverity::Warning,
391 summary: "The default configuration filename has changed from `config.toml` to `bootstrap.toml`. `config.toml` is deprecated but remains supported for backward compatibility.",
392 },
388393];
src/ci/run.sh+2-2
......@@ -229,8 +229,8 @@ trap datecheck EXIT
229229# sccache server at the start of the build, but no need to worry if this fails.
230230SCCACHE_IDLE_TIMEOUT=10800 sccache --start-server || true
231231
232# Our build may overwrite config.toml, so we remove it here
233rm -f config.toml
232# Our build may overwrite bootstrap.toml, so we remove it here
233rm -f bootstrap.toml
234234
235235$SRC/configure $RUST_CONFIGURE_ARGS
236236
src/doc/rustc-dev-guide/src/backend/debugging.md+2-2
......@@ -38,7 +38,7 @@ which means that LLVM assertion failures can show up as compiler crashes (not
3838ICEs but "real" crashes) and other sorts of weird behavior. If you are
3939encountering these, it is a good idea to try using a compiler with LLVM
4040assertions enabled - either an "alt" nightly or a compiler you build yourself
41by setting `[llvm] assertions=true` in your config.toml - and see whether
41by setting `[llvm] assertions=true` in your bootstrap.toml - and see whether
4242anything turns up.
4343
4444The rustc build process builds the LLVM tools into
......@@ -160,7 +160,7 @@ from `./build/<host-triple>/llvm/bin/` with the LLVM IR emitted by rustc.
160160When investigating the implementation of LLVM itself, you should be
161161aware of its [internal debug infrastructure][llvm-debug].
162162This is provided in LLVM Debug builds, which you enable for rustc
163LLVM builds by changing this setting in the config.toml:
163LLVM builds by changing this setting in the bootstrap.toml:
164164```
165165[llvm]
166166# Indicates whether the LLVM assertions are enabled or not
src/doc/rustc-dev-guide/src/backend/updating-llvm.md+1-1
......@@ -144,7 +144,7 @@ so let's go through each in detail.
144144 Note that `profile = "compiler"` and other defaults set by `./x setup`
145145 download LLVM from CI instead of building it from source.
146146 You should disable this temporarily to make sure your changes are being used.
147 This is done by having the following setting in `config.toml`:
147 This is done by having the following setting in `bootstrap.toml`:
148148
149149 ```toml
150150 [llvm]
src/doc/rustc-dev-guide/src/building/compiler-documenting.md+1-1
......@@ -36,7 +36,7 @@ like the standard library (std) or the compiler (rustc).
3636- Document internal rustc items
3737
3838 Compiler documentation is not built by default.
39 To create it by default with `x doc`, modify `config.toml`:
39 To create it by default with `x doc`, modify `bootstrap.toml`:
4040
4141 ```toml
4242 [build]
src/doc/rustc-dev-guide/src/building/how-to-build-and-run.md+7-7
......@@ -159,15 +159,15 @@ similar to the one declared in section [What is `x.py`](#what-is-xpy), but
159159it works as an independent process to execute the `x.py` rather than calling the
160160shell to run the platform related scripts.
161161
162## Create a `config.toml`
162## Create a `bootstrap.toml`
163163
164164To start, run `./x setup` and select the `compiler` defaults. This will do some initialization
165and create a `config.toml` for you with reasonable defaults. If you use a different default (which
165and create a `bootstrap.toml` for you with reasonable defaults. If you use a different default (which
166166you'll likely want to do if you want to contribute to an area of rust other than the compiler, such
167167as rustdoc), make sure to read information about that default (located in `src/bootstrap/defaults`)
168168as the build process may be different for other defaults.
169169
170Alternatively, you can write `config.toml` by hand. See `config.example.toml` for all the available
170Alternatively, you can write `bootstrap.toml` by hand. See `bootstrap.example.toml` for all the available
171171settings and explanations of them. See `src/bootstrap/defaults` for common settings to change.
172172
173173If you have already built `rustc` and you change settings related to LLVM, then you may have to
......@@ -206,7 +206,7 @@ See the chapters on
206206Note that building will require a relatively large amount of storage space.
207207You may want to have upwards of 10 or 15 gigabytes available to build the compiler.
208208
209Once you've created a `config.toml`, you are now ready to run
209Once you've created a `bootstrap.toml`, you are now ready to run
210210`x`. There are a lot of options here, but let's start with what is
211211probably the best "go to" command for building a local compiler:
212212
......@@ -326,7 +326,7 @@ involve proc macros or build scripts, you must be sure to explicitly build targe
326326host platform (in this case, `x86_64-unknown-linux-gnu`).
327327
328328If you want to always build for other targets without needing to pass flags to `x build`,
329you can configure this in the `[build]` section of your `config.toml` like so:
329you can configure this in the `[build]` section of your `bootstrap.toml` like so:
330330
331331```toml
332332[build]
......@@ -336,8 +336,8 @@ target = ["x86_64-unknown-linux-gnu", "wasm32-wasip1"]
336336Note that building for some targets requires having external dependencies installed
337337(e.g. building musl targets requires a local copy of musl).
338338Any target-specific configuration (e.g. the path to a local copy of musl)
339will need to be provided by your `config.toml`.
340Please see `config.example.toml` for information on target-specific configuration keys.
339will need to be provided by your `bootstrap.toml`.
340Please see `bootstrap.example.toml` for information on target-specific configuration keys.
341341
342342For examples of the complete configuration necessary to build a target, please visit
343343[the rustc book](https://doc.rust-lang.org/rustc/platform-support.html),
src/doc/rustc-dev-guide/src/building/new-target.md+6-6
......@@ -37,7 +37,7 @@ able to configure Rust to treat your build as the system LLVM to avoid
3737redundant builds.
3838
3939You can tell Rust to use a pre-built version of LLVM using the `target` section
40of `config.toml`:
40of `bootstrap.toml`:
4141
4242```toml
4343[target.x86_64-unknown-linux-gnu]
......@@ -55,8 +55,8 @@ for codegen tests. This tool is normally built with LLVM, but if you use your
5555own preinstalled LLVM, you will need to provide `FileCheck` in some other way.
5656On Debian-based systems, you can install the `llvm-N-tools` package (where `N`
5757is the LLVM version number, e.g. `llvm-8-tools`). Alternately, you can specify
58the path to `FileCheck` with the `llvm-filecheck` config item in `config.toml`
59or you can disable codegen test with the `codegen-tests` item in `config.toml`.
58the path to `FileCheck` with the `llvm-filecheck` config item in `bootstrap.toml`
59or you can disable codegen test with the `codegen-tests` item in `bootstrap.toml`.
6060
6161## Creating a target specification
6262
......@@ -141,14 +141,14 @@ After this, run `cargo update -p libc` to update the lockfiles.
141141
142142Beware that if you patch to a local `path` dependency, this will enable
143143warnings for that dependency. Some dependencies are not warning-free, and due
144to the `deny-warnings` setting in `config.toml`, the build may suddenly start
144to the `deny-warnings` setting in `bootstrap.toml`, the build may suddenly start
145145to fail.
146146To work around warnings, you may want to:
147147- Modify the dependency to remove the warnings
148- Or for local development purposes, suppress the warnings by setting deny-warnings = false in config.toml.
148- Or for local development purposes, suppress the warnings by setting deny-warnings = false in bootstrap.toml.
149149
150150```toml
151# config.toml
151# bootstrap.toml
152152[rust]
153153deny-warnings = false
154154```
src/doc/rustc-dev-guide/src/building/optimized-build.md+4-4
......@@ -13,7 +13,7 @@ This page describes how you can use these approaches when building `rustc` yours
1313
1414Link-time optimization is a powerful compiler technique that can increase program performance. To
1515enable (Thin-)LTO when building `rustc`, set the `rust.lto` config option to `"thin"`
16in `config.toml`:
16in `bootstrap.toml`:
1717
1818```toml
1919[rust]
......@@ -34,7 +34,7 @@ Enabling LTO on Linux has [produced] speed-ups by up to 10%.
3434
3535Using a different memory allocator for `rustc` can provide significant performance benefits. If you
3636want to enable the `jemalloc` allocator, you can set the `rust.jemalloc` option to `true`
37in `config.toml`:
37in `bootstrap.toml`:
3838
3939```toml
4040[rust]
......@@ -46,7 +46,7 @@ jemalloc = true
4646## Codegen units
4747
4848Reducing the amount of codegen units per `rustc` crate can produce a faster build of the compiler.
49You can modify the number of codegen units for `rustc` and `libstd` in `config.toml` with the
49You can modify the number of codegen units for `rustc` and `libstd` in `bootstrap.toml` with the
5050following options:
5151
5252```toml
......@@ -67,7 +67,7 @@ RUSTFLAGS="-C target_cpu=x86-64-v3" ./x build ...
6767```
6868
6969If you also want to compile LLVM for a specific instruction set, you can set `llvm` flags
70in `config.toml`:
70in `bootstrap.toml`:
7171
7272```toml
7373[llvm]
src/doc/rustc-dev-guide/src/building/suggested.md+5-5
......@@ -305,7 +305,7 @@ subsequent rebuilds:
305305```
306306
307307If you don't want to include the flag with every command, you can enable it in
308the `config.toml`:
308the `bootstrap.toml`:
309309
310310```toml
311311[rust]
......@@ -384,20 +384,20 @@ ln -s ./src/tools/nix-dev-shell/envrc-shell ./.envrc # Use nix-shell
384384### Note
385385
386386Note that when using nix on a not-NixOS distribution, it may be necessary to set
387**`patch-binaries-for-nix = true` in `config.toml`**. Bootstrap tries to detect
387**`patch-binaries-for-nix = true` in `bootstrap.toml`**. Bootstrap tries to detect
388388whether it's running in nix and enable patching automatically, but this
389389detection can have false negatives.
390390
391You can also use your nix shell to manage `config.toml`:
391You can also use your nix shell to manage `bootstrap.toml`:
392392
393393```nix
394394let
395395 config = pkgs.writeText "rustc-config" ''
396 # Your config.toml content goes here
396 # Your bootstrap.toml content goes here
397397 ''
398398pkgs.mkShell {
399399 /* ... */
400 # This environment variable tells bootstrap where our config.toml is.
400 # This environment variable tells bootstrap where our bootstrap.toml is.
401401 RUST_BOOTSTRAP_CONFIG = config;
402402}
403403```
src/doc/rustc-dev-guide/src/compiler-debugging.md+5-5
......@@ -11,13 +11,13 @@ chapter](./backend/debugging.md)).
1111## Configuring the compiler
1212
1313By default, rustc is built without most debug information. To enable debug info,
14set `debug = true` in your config.toml.
14set `debug = true` in your bootstrap.toml.
1515
1616Setting `debug = true` turns on many different debug options (e.g., `debug-assertions`,
1717`debug-logging`, etc.) which can be individually tweaked if you want to, but many people
1818simply set `debug = true`.
1919
20If you want to use GDB to debug rustc, please set `config.toml` with options:
20If you want to use GDB to debug rustc, please set `bootstrap.toml` with options:
2121
2222```toml
2323[rust]
......@@ -35,14 +35,14 @@ debuginfo-level = 2
3535
3636The default configuration will enable `symbol-mangling-version` v0.
3737This requires at least GDB v10.2,
38otherwise you need to disable new symbol-mangling-version in `config.toml`.
38otherwise you need to disable new symbol-mangling-version in `bootstrap.toml`.
3939
4040```toml
4141[rust]
4242new-symbol-mangling = false
4343```
4444
45> See the comments in `config.example.toml` for more info.
45> See the comments in `bootstrap.example.toml` for more info.
4646
4747You will need to rebuild the compiler after changing any configuration option.
4848
......@@ -373,7 +373,7 @@ error: aborting due to previous error
373373
374374## Configuring CodeLLDB for debugging `rustc`
375375
376If you are using VSCode, and have edited your `config.toml` to request debugging
376If you are using VSCode, and have edited your `bootstrap.toml` to request debugging
377377level 1 or 2 for the parts of the code you're interested in, then you should be
378378able to use the [CodeLLDB] extension in VSCode to debug it.
379379
src/doc/rustc-dev-guide/src/fuzzing.md+1-1
......@@ -123,7 +123,7 @@ what actually results in superior throughput.
123123You may want to build rustc from source with debug assertions to find
124124additional bugs, though this is a trade-off: it can slow down fuzzing by
125125requiring extra work for every execution. To enable debug assertions, add this
126to `config.toml` when compiling rustc:
126to `bootstrap.toml` when compiling rustc:
127127
128128```toml
129129[rust]
src/doc/rustc-dev-guide/src/llvm-coverage-instrumentation.md+3-3
......@@ -34,7 +34,7 @@ Detailed instructions and examples are documented in the
3434[coverage map]: https://llvm.org/docs/CoverageMappingFormat.html
3535[rustc-book-instrument-coverage]: https://doc.rust-lang.org/nightly/rustc/instrument-coverage.html
3636
37## Recommended `config.toml` settings
37## Recommended `bootstrap.toml` settings
3838
3939When working on the coverage instrumentation code, it is usually necessary to
4040**enable the profiler runtime** by setting `profiler = true` in `[build]`.
......@@ -83,7 +83,7 @@ statically links coverage-instrumented binaries with LLVM runtime code
8383In the `rustc` source tree,
8484`library/profiler_builtins` bundles the LLVM `compiler-rt` code into a Rust library crate.
8585Note that when building `rustc`,
86`profiler_builtins` is only included when `build.profiler = true` is set in `config.toml`.
86`profiler_builtins` is only included when `build.profiler = true` is set in `bootstrap.toml`.
8787
8888When compiling with `-C instrument-coverage`,
8989[`CrateLoader::postprocess()`][crate-loader-postprocess] dynamically loads
......@@ -115,7 +115,7 @@ human-readable coverage report.
115115
116116> Tests in `coverage-run` mode have an implicit `//@ needs-profiler-runtime`
117117> directive, so they will be skipped if the profiler runtime has not been
118> [enabled in `config.toml`](#recommended-configtoml-settings).
118> [enabled in `bootstrap.toml`](#recommended-configtoml-settings).
119119
120120Finally, the [`tests/codegen/instrument-coverage/testprog.rs`] test compiles a simple Rust program
121121with `-C instrument-coverage` and compares the compiled program's LLVM IR to
src/doc/rustc-dev-guide/src/overview.md+1-1
......@@ -351,7 +351,7 @@ approach is to turn [`RefCell`]s into [`Mutex`]s -- that is, we
351351switch to thread-safe internal mutability. However, there are ongoing
352352challenges with lock contention, maintaining query-system invariants under
353353concurrency, and the complexity of the code base. One can try out the current
354work by enabling parallel compilation in `config.toml`. It's still early days,
354work by enabling parallel compilation in `bootstrap.toml`. It's still early days,
355355but there are already some promising performance improvements.
356356
357357[`RefCell`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html
src/doc/rustc-dev-guide/src/profile-guided-optimization.md+1-1
......@@ -120,7 +120,7 @@ The `rustc` version of this can be found in `library/profiler_builtins` which
120120basically packs the C code from `compiler-rt` into a Rust crate.
121121
122122In order for `profiler_builtins` to be built, `profiler = true` must be set
123in `rustc`'s `config.toml`.
123in `rustc`'s `bootstrap.toml`.
124124
125125[compiler-rt-profile]: https://github.com/llvm/llvm-project/tree/main/compiler-rt/lib/profile
126126
src/doc/rustc-dev-guide/src/profiling.md+1-1
......@@ -87,7 +87,7 @@ Example output for the compiler:
8787
8888Since this doesn't seem to work with incremental compilation or `./x check`,
8989you will be compiling rustc _a lot_.
90I recommend changing a few settings in `config.toml` to make it bearable:
90I recommend changing a few settings in `bootstrap.toml` to make it bearable:
9191```
9292[rust]
9393# A debug build takes _a third_ as long on my machine,
src/doc/rustc-dev-guide/src/profiling/with_perf.md+1-1
......@@ -6,7 +6,7 @@ This is a guide for how to profile rustc with [perf](https://perf.wiki.kernel.or
66
77- Get a clean checkout of rust-lang/master, or whatever it is you want
88 to profile.
9- Set the following settings in your `config.toml`:
9- Set the following settings in your `bootstrap.toml`:
1010 - `debuginfo-level = 1` - enables line debuginfo
1111 - `jemalloc = false` - lets you do memory use profiling with valgrind
1212 - leave everything else the defaults
src/doc/rustc-dev-guide/src/profiling/with_rustc_perf.md+1-1
......@@ -9,7 +9,7 @@ which will download and build the suite for you, build a local compiler toolchai
99
1010You can use the `./x perf <command> [options]` command to use this integration.
1111
12You can use normal bootstrap flags for this command, such as `--stage 1` or `--stage 2`, for example to modify the stage of the created sysroot. It might also be useful to configure `config.toml` to better support profiling, e.g. set `rust.debuginfo-level = 1` to add source line information to the built compiler.
12You can use normal bootstrap flags for this command, such as `--stage 1` or `--stage 2`, for example to modify the stage of the created sysroot. It might also be useful to configure `bootstrap.toml` to better support profiling, e.g. set `rust.debuginfo-level = 1` to add source line information to the built compiler.
1313
1414`x perf` currently supports the following commands:
1515- `benchmark <id>`: Benchmark the compiler and store the results under the passed `id`.
src/doc/rustc-dev-guide/src/profiling/wpa_profiling.md+1-1
......@@ -44,7 +44,7 @@ compiler we're using to build rustc will aid our analysis greatly by allowing WP
4444symbols correctly. Unfortunately, the stage 0 compiler does not have symbols turned on which is why
4545we'll need to build a stage 1 compiler and then a stage 2 compiler ourselves.
4646
47To do this, make sure you have set `debuginfo-level = 1` in your `config.toml` file. This tells
47To do this, make sure you have set `debuginfo-level = 1` in your `bootstrap.toml` file. This tells
4848rustc to generate debug information which includes stack frames when bootstrapping.
4949
5050Now you can build the stage 1 compiler: `x build --stage 1 -i library` or however
src/doc/rustc-dev-guide/src/rustdoc.md+2-2
......@@ -58,12 +58,12 @@ does is call the `main()` that's in this crate's `lib.rs`, though.)
5858 * If you want to copy those docs to a webserver, copy all of
5959 `build/host/doc`, since that's where the CSS, JS, fonts, and landing
6060 page are.
61 * For frontend debugging, disable the `rust.docs-minification` option in [`config.toml`].
61 * For frontend debugging, disable the `rust.docs-minification` option in [`bootstrap.toml`].
6262* Use `./x test tests/rustdoc*` to run the tests using a stage1
6363 rustdoc.
6464 * See [Rustdoc internals] for more information about tests.
6565
66[`config.toml`]: ./building/how-to-build-and-run.md
66[`bootstrap.toml`]: ./building/how-to-build-and-run.md
6767
6868## Code structure
6969
src/doc/rustc-dev-guide/src/sanitizers.md+2-2
......@@ -32,7 +32,7 @@ implementation:
3232
3333* The sanitizer runtime libraries are part of the [compiler-rt] project, and
3434 [will be built][sanitizer-build] on [supported targets][sanitizer-targets]
35 when enabled in `config.toml`:
35 when enabled in `bootstrap.toml`:
3636
3737 ```toml
3838 [build]
......@@ -80,7 +80,7 @@ Sanitizers are validated by code generation tests in
8080[`tests/ui/sanitizer/`][test-ui] directory.
8181
8282Testing sanitizer functionality requires the sanitizer runtimes (built when
83`sanitizer = true` in `config.toml`) and target providing support for particular
83`sanitizer = true` in `bootstrap.toml`) and target providing support for particular
8484sanitizer. When sanitizer is unsupported on given target, sanitizers tests will
8585be ignored. This behaviour is controlled by compiletest `needs-sanitizer-*`
8686directives.
src/doc/rustc-dev-guide/src/tests/ci.md+1-1
......@@ -435,7 +435,7 @@ To learn more about the dashboard, see the [Datadog CI docs].
435435
436436## Determining the CI configuration
437437
438If you want to determine which `config.toml` settings are used in CI for a
438If you want to determine which `bootstrap.toml` settings are used in CI for a
439439particular job, it is probably easiest to just look at the build log. To do
440440this:
441441
src/doc/rustc-dev-guide/src/tests/compiletest.md+2-2
......@@ -525,10 +525,10 @@ data into a human-readable code coverage report.
525525
526526Instrumented binaries need to be linked against the LLVM profiler runtime, so
527527`coverage-run` tests are **automatically skipped** unless the profiler runtime
528is enabled in `config.toml`:
528is enabled in `bootstrap.toml`:
529529
530530```toml
531# config.toml
531# bootstrap.toml
532532[build]
533533profiler = true
534534```
src/doc/rustc-dev-guide/src/tests/directives.md+3-3
......@@ -160,9 +160,9 @@ settings:
160160 stable support for `asm!`
161161- `needs-profiler-runtime` — ignores the test if the profiler runtime was not
162162 enabled for the target
163 (`build.profiler = true` in rustc's `config.toml`)
163 (`build.profiler = true` in rustc's `bootstrap.toml`)
164164- `needs-sanitizer-support` — ignores if the sanitizer support was not enabled
165 for the target (`sanitizers = true` in rustc's `config.toml`)
165 for the target (`sanitizers = true` in rustc's `bootstrap.toml`)
166166- `needs-sanitizer-{address,hwaddress,leak,memory,thread}` — ignores if the
167167 corresponding sanitizer is not enabled for the target (AddressSanitizer,
168168 hardware-assisted AddressSanitizer, LeakSanitizer, MemorySanitizer or
......@@ -172,7 +172,7 @@ settings:
172172 flag, or running on fuchsia.
173173- `needs-unwind` — ignores if the target does not support unwinding
174174- `needs-rust-lld` — ignores if the rust lld support is not enabled (`rust.lld =
175 true` in `config.toml`)
175 true` in `bootstrap.toml`)
176176- `needs-threads` — ignores if the target does not have threading support
177177- `needs-subprocess` — ignores if the target does not have subprocess support
178178- `needs-symlink` — ignores if the target does not support symlinks. This can be
src/doc/rustc-dev-guide/src/tests/docker.md+1-1
......@@ -21,7 +21,7 @@ The [`src/ci/docker/run.sh`] script is used to build a specific Docker image, ru
2121build Rust within the image, and either run tests or prepare a set of archives designed for distribution. The script will mount your local Rust source tree in read-only mode, and an `obj` directory in read-write mode. All the compiler artifacts will be stored in the `obj` directory. The shell will start out in the `obj`directory. From there, it will execute `../src/ci/run.sh` which starts the build as defined by the Docker image.
2222
2323You can run `src/ci/docker/run.sh <image-name>` directly. A few important notes regarding the `run.sh` script:
24- When executed on CI, the script expects that all submodules are checked out. If some submodule that is accessed by the job is not available, the build will result in an error. You should thus make sure that you have all required submodules checked out locally. You can either do that manually through git, or set `submodules = true` in your `config.toml` and run a command such as `x build` to let bootstrap download the most important submodules (this might not be enough for the given CI job that you are trying to execute though).
24- When executed on CI, the script expects that all submodules are checked out. If some submodule that is accessed by the job is not available, the build will result in an error. You should thus make sure that you have all required submodules checked out locally. You can either do that manually through git, or set `submodules = true` in your `bootstrap.toml` and run a command such as `x build` to let bootstrap download the most important submodules (this might not be enough for the given CI job that you are trying to execute though).
2525- `<image-name>` corresponds to a single directory located in one of the `src/ci/docker/host-*` directories. Note that image name does not necessarily correspond to a job name, as some jobs execute the same image, but with different environment variables or Docker build arguments (this is a part of the complexity that makes it difficult to run CI jobs locally).
2626- If you are executing a "dist" job (job beginning with `dist-`), you should set the `DEPLOY=1` environment variable.
2727- If you are executing an "alternative dist" job (job beginning with `dist-` and ending with `-alt`), you should set the `DEPLOY_ALT=1` environment variable.
src/doc/rustc-dev-guide/src/tests/running.md+2-2
......@@ -189,7 +189,7 @@ just like when running the tests without the `--bless` flag.
189189
190190There are a few options for running tests:
191191
192* `config.toml` has the `rust.verbose-tests` option. If `false`, each test will
192* `bootstrap.toml` has the `rust.verbose-tests` option. If `false`, each test will
193193 print a single dot (the default). If `true`, the name of every test will be
194194 printed. This is equivalent to the `--quiet` option in the [Rust test
195195 harness](https://doc.rust-lang.org/rustc/tests/).
......@@ -353,7 +353,7 @@ coordinate running tests (see [src/bootstrap/src/core/build_steps/test.rs]).
353353First thing to know is that it only supports linux x86_64 at the moment. We will
354354extend its support later on.
355355
356You need to update `codegen-backends` value in your `config.toml` file in the
356You need to update `codegen-backends` value in your `bootstrap.toml` file in the
357357`[rust]` section and add "gcc" in the array:
358358
359359```toml
src/doc/rustc-dev-guide/src/tracing.md+2-2
......@@ -185,11 +185,11 @@ rustc.
185185
186186While calls to `error!`, `warn!` and `info!` are included in every build of the compiler,
187187calls to `debug!` and `trace!` are only included in the program if
188`debug-logging=true` is turned on in config.toml (it is
188`debug-logging=true` is turned on in bootstrap.toml (it is
189189turned off by default), so if you don't see `DEBUG` logs, especially
190190if you run the compiler with `RUSTC_LOG=rustc rustc some.rs` and only see
191191`INFO` logs, make sure that `debug-logging=true` is turned on in your
192config.toml.
192bootstrap.toml.
193193
194194## Logging etiquette and conventions
195195
src/doc/rustc/src/instrument-coverage.md+1-1
......@@ -27,7 +27,7 @@ Rust's source-based code coverage requires the Rust "profiler runtime". Without
2727
2828The Rust `nightly` distribution channel includes the profiler runtime, by default.
2929
30> **Important**: If you are building the Rust compiler from the source distribution, the profiler runtime is _not_ enabled in the default `config.example.toml`. Edit your `config.toml` file and ensure the `profiler` feature is set it to `true` (either under the `[build]` section, or under the settings for an individual `[target.<triple>]`):
30> **Important**: If you are building the Rust compiler from the source distribution, the profiler runtime is _not_ enabled in the default `bootstrap.example.toml`. Edit your `bootstrap.toml` file and ensure the `profiler` feature is set it to `true` (either under the `[build]` section, or under the settings for an individual `[target.<triple>]`):
3131>
3232> ```toml
3333> # Build the profiler runtime (required when compiling with options that depend
src/doc/rustc/src/platform-support/TEMPLATE.md+1-1
......@@ -28,7 +28,7 @@ What format do binaries use by default? ELF, PE, something else?
2828## Building the target
2929
3030If Rust doesn't build the target by default, how can users build it? Can users
31just add it to the `target` list in `config.toml`?
31just add it to the `target` list in `bootstrap.toml`?
3232
3333## Building Rust programs
3434
src/doc/rustc/src/platform-support/aarch64-unknown-teeos.md+1-1
......@@ -54,7 +54,7 @@ exec /path/to/ohos-sdk/linux/native/llvm/bin/clang++ \
5454
5555## Building the target
5656
57To build a rust toolchain, create a `config.toml` with the following contents:
57To build a rust toolchain, create a `bootstrap.toml` with the following contents:
5858
5959```toml
6060profile = "compiler"
src/doc/rustc/src/platform-support/apple-ios.md+1-1
......@@ -47,7 +47,7 @@ $ rustup target add x86_64-apple-ios
4747```
4848
4949The tier 3 targets can be built by enabling them for a `rustc` build in
50`config.toml`, by adding, for example:
50`bootstrap.toml`, by adding, for example:
5151
5252```toml
5353[build]
src/doc/rustc/src/platform-support/apple-tvos.md+1-1
......@@ -52,7 +52,7 @@ The following APIs are currently known to have missing or incomplete support:
5252## Building the target
5353
5454The targets can be built by enabling them for a `rustc` build in
55`config.toml`, by adding, for example:
55`bootstrap.toml`, by adding, for example:
5656
5757```toml
5858[build]
src/doc/rustc/src/platform-support/apple-visionos.md+1-1
......@@ -31,7 +31,7 @@ case `XROS_DEPLOYMENT_TARGET`.
3131## Building the target
3232
3333The targets can be built by enabling them for a `rustc` build in
34`config.toml`, by adding, for example:
34`bootstrap.toml`, by adding, for example:
3535
3636```toml
3737[build]
src/doc/rustc/src/platform-support/apple-watchos.md+1-1
......@@ -37,7 +37,7 @@ case `WATCHOS_DEPLOYMENT_TARGET`.
3737## Building the target
3838
3939The targets can be built by enabling them for a `rustc` build in
40`config.toml`, by adding, for example:
40`bootstrap.toml`, by adding, for example:
4141
4242```toml
4343[build]
src/doc/rustc/src/platform-support/arm64e-apple-darwin.md+1-1
......@@ -16,7 +16,7 @@ See the docs on [`*-apple-darwin`](apple-darwin.md) for general macOS requiremen
1616
1717## Building the target
1818
19You can build Rust with support for the targets by adding it to the `target` list in `config.toml`:
19You can build Rust with support for the targets by adding it to the `target` list in `bootstrap.toml`:
2020
2121```toml
2222[build]
src/doc/rustc/src/platform-support/arm64e-apple-ios.md+1-1
......@@ -14,7 +14,7 @@ See the docs on [`*-apple-ios`](apple-ios.md) for general iOS requirements.
1414
1515## Building the target
1616
17You can build Rust with support for the targets by adding it to the `target` list in `config.toml`:
17You can build Rust with support for the targets by adding it to the `target` list in `bootstrap.toml`:
1818
1919```toml
2020[build]
src/doc/rustc/src/platform-support/arm64e-apple-tvos.md+1-1
......@@ -15,7 +15,7 @@ To build this target Xcode 12 or higher on macOS is required.
1515
1616## Building the target
1717
18You can build Rust with support for the targets by adding it to the `target` list in `config.toml`:
18You can build Rust with support for the targets by adding it to the `target` list in `bootstrap.toml`:
1919
2020```toml
2121[build]
src/doc/rustc/src/platform-support/arm64ec-pc-windows-msvc.md+1-1
......@@ -56,7 +56,7 @@ To put this in practice:
5656## Building the target
5757
5858You can build Rust with support for the targets by adding it to the `target`
59list in `config.toml`:
59list in `bootstrap.toml`:
6060
6161```toml
6262[build]
src/doc/rustc/src/platform-support/armeb-unknown-linux-gnueabi.md+1-1
......@@ -21,7 +21,7 @@ The target definition can be seen [here](https://github.com/rust-lang/rust/blob/
2121## Building the target
2222Because it is Tier 3, rust does not yet ship pre-compiled artifacts for this target.
2323
24Therefore, you can build Rust with support for the target by adding it to the target list in config.toml, a sample configuration is shown below. It is expected that the user already have a working GNU compiler toolchain and update the paths accordingly.
24Therefore, you can build Rust with support for the target by adding it to the target list in bootstrap.toml, a sample configuration is shown below. It is expected that the user already have a working GNU compiler toolchain and update the paths accordingly.
2525
2626```toml
2727[llvm]
src/doc/rustc/src/platform-support/armv6k-nintendo-3ds.md+1-1
......@@ -50,7 +50,7 @@ This target generates binaries in the ELF format.
5050## Building the target
5151
5252You can build Rust with support for the target by adding it to the `target`
53list in `config.toml` and providing paths to the devkitARM toolchain.
53list in `bootstrap.toml` and providing paths to the devkitARM toolchain.
5454
5555```toml
5656[build]
src/doc/rustc/src/platform-support/armv7-unknown-linux-uclibceabihf.md+1-1
......@@ -22,7 +22,7 @@ If you don't already have a suitable toolchain, download one [here](https://tool
2222
2323### Configure rust
2424
25The target can be built by enabling it for a `rustc` build, by placing the following in `config.toml`:
25The target can be built by enabling it for a `rustc` build, by placing the following in `bootstrap.toml`:
2626
2727```toml
2828[build]
src/doc/rustc/src/platform-support/csky-unknown-linux-gnuabiv2.md+1-1
......@@ -36,7 +36,7 @@ If you don't already have a suitable toolchain, you can download from [here](htt
3636
3737### Configure rust
3838
39The target can be built by enabling it for a `rustc` build, by placing the following in `config.toml`:
39The target can be built by enabling it for a `rustc` build, by placing the following in `bootstrap.toml`:
4040
4141```toml
4242[build]
src/doc/rustc/src/platform-support/fuchsia.md+5-5
......@@ -180,7 +180,7 @@ Fuchsia as well. A recent version (14+) of clang should be sufficient to compile
180180Rust for Fuchsia.
181181
182182x86-64 and AArch64 Fuchsia targets can be enabled using the following
183configuration in `config.toml`:
183configuration in `bootstrap.toml`:
184184
185185```toml
186186[build]
......@@ -212,7 +212,7 @@ cxx = "clang++"
212212
213213By default, the Rust compiler installs itself to `/usr/local` on most UNIX
214214systems. You may want to install it to another location (e.g. a local `install`
215directory) by setting a custom prefix in `config.toml`:
215directory) by setting a custom prefix in `bootstrap.toml`:
216216
217217```toml
218218[install]
......@@ -695,7 +695,7 @@ We can then use the script to start our test environment with:
695695)
696696```
697697
698Where `${RUST_SRC_PATH}/build` is the `build-dir` set in `config.toml`.
698Where `${RUST_SRC_PATH}/build` is the `build-dir` set in `bootstrap.toml`.
699699
700700Once our environment is started, we can run our tests using `x.py` as usual. The
701701test runner script will run the compiled tests on an emulated Fuchsia device. To
......@@ -705,7 +705,7 @@ run the full `tests/ui` test suite:
705705( \
706706 source config-env.sh && \
707707 ./x.py \
708 --config config.toml \
708 --config bootstrap.toml \
709709 --stage=2 \
710710 test tests/ui \
711711 --target x86_64-unknown-fuchsia \
......@@ -893,7 +893,7 @@ through our `x.py` invocation. The full invocation is:
893893( \
894894 source config-env.sh && \
895895 ./x.py \
896 --config config.toml \
896 --config bootstrap.toml \
897897 --stage=2 \
898898 test tests/${TEST} \
899899 --target x86_64-unknown-fuchsia \
src/doc/rustc/src/platform-support/hermit.md+1-1
......@@ -31,7 +31,7 @@ Hermit binaries have the ELF format.
3131
3232## Building the target
3333
34You can build Rust with support for the targets by adding it to the `target` list in `config.toml`.
34You can build Rust with support for the targets by adding it to the `target` list in `bootstrap.toml`.
3535To run the Hermit build scripts, you also have to enable your host target.
3636The build scripts rely on `llvm-tools` and binaries are linked using `rust-lld`, so those have to be enabled as well.
3737
src/doc/rustc/src/platform-support/hexagon-unknown-linux-musl.md+1-1
......@@ -44,7 +44,7 @@ Because it is Tier 3, rust does not yet ship pre-compiled artifacts for this
4444target.
4545
4646Therefore, you can build Rust with support for the target by adding it to the
47target list in `config.toml`, a sample configuration is shown below.
47target list in `bootstrap.toml`, a sample configuration is shown below.
4848
4949```toml
5050[build]
src/doc/rustc/src/platform-support/hexagon-unknown-none-elf.md+1-1
......@@ -28,7 +28,7 @@ This target generates PIC ELF binaries.
2828## Building the target
2929
3030You can build Rust with support for the target by adding it to the `target`
31list in `config.toml`:
31list in `bootstrap.toml`:
3232
3333```toml
3434[build]
src/doc/rustc/src/platform-support/i686-apple-darwin.md+1-1
......@@ -17,7 +17,7 @@ You'll need the macOS 10.13 SDK shipped with Xcode 9. The location of the SDK
1717can be passed to `rustc` using the common `SDKROOT` environment variable.
1818
1919Once you have that, you can build Rust with support for the target by adding
20it to the `target` list in `config.toml`:
20it to the `target` list in `bootstrap.toml`:
2121
2222```toml
2323[build]
src/doc/rustc/src/platform-support/kmc-solid.md+1-1
......@@ -32,7 +32,7 @@ The target can be built by enabling it for a `rustc` build.
3232target = ["aarch64-kmc-solid_asp3"]
3333```
3434
35Make sure `aarch64-kmc-elf-gcc` is included in `$PATH`. Alternatively, you can use GNU Arm Embedded Toolchain by adding the following to `config.toml`:
35Make sure `aarch64-kmc-elf-gcc` is included in `$PATH`. Alternatively, you can use GNU Arm Embedded Toolchain by adding the following to `bootstrap.toml`:
3636
3737```toml
3838[target.aarch64-kmc-solid_asp3]
src/doc/rustc/src/platform-support/loongarch-linux.md+2-2
......@@ -65,7 +65,7 @@ These targets are distributed through `rustup`, and otherwise require no
6565special configuration.
6666
6767If you need to build your own Rust for some reason though, the targets can be
68simply enabled in `config.toml`. For example:
68simply enabled in `bootstrap.toml`. For example:
6969
7070```toml
7171[build]
......@@ -73,7 +73,7 @@ target = ["loongarch64-unknown-linux-gnu"]
7373```
7474
7575Make sure the LoongArch toolchain binaries are reachable from `$PATH`.
76Alternatively, you can explicitly configure the paths in `config.toml`:
76Alternatively, you can explicitly configure the paths in `bootstrap.toml`:
7777
7878```toml
7979[target.loongarch64-unknown-linux-gnu]
src/doc/rustc/src/platform-support/loongarch-none.md+1-1
......@@ -46,7 +46,7 @@ scripts.
4646## Building the target
4747
4848You can build Rust with support for the targets by adding them to the `target`
49list in `config.toml`:
49list in `bootstrap.toml`:
5050
5151```toml
5252[build]
src/doc/rustc/src/platform-support/mips-release-6.md+3-3
......@@ -67,7 +67,7 @@ The following procedure outlines the build process for the MIPS64 R6 target with
6767
6868### Prerequisite: Disable debuginfo
6969
70An LLVM bug makes rustc crash if debug or debug info generation is enabled. You need to edit `config.toml` to disable this:
70An LLVM bug makes rustc crash if debug or debug info generation is enabled. You need to edit `bootstrap.toml` to disable this:
7171
7272```toml
7373[rust]
......@@ -83,7 +83,7 @@ The crate `rustix` may try to link itself against MIPS R2 assembly, resulting in
8383export RUSTFLAGS="--cfg rustix_use_libc"
8484```
8585
86This will trigger warnings during build, as `-D warnings` is enabled by default. Disable `-D warnings` by editing `config.toml` to append the following:
86This will trigger warnings during build, as `-D warnings` is enabled by default. Disable `-D warnings` by editing `bootstrap.toml` to append the following:
8787
8888```toml
8989[rust]
......@@ -116,7 +116,7 @@ target = ["mipsisa64r6el-unknown-linux-gnuabi64"]
116116
117117Make sure that `mipsisa64r6el-unknown-linux-gnuabi64-gcc` is available from your executable search path (`$PATH`).
118118
119Alternatively, you can specify the directories to all necessary toolchain executables in `config.toml`:
119Alternatively, you can specify the directories to all necessary toolchain executables in `bootstrap.toml`:
120120
121121```toml
122122[target.mipsisa64r6el-unknown-linux-gnuabi64]
src/doc/rustc/src/platform-support/nto-qnx.md+1-1
......@@ -124,7 +124,7 @@ For conditional compilation, following QNX specific attributes are defined:
124124
125125## Building the target
126126
1271. Create a `config.toml`
1271. Create a `bootstrap.toml`
128128
129129 Example content:
130130
src/doc/rustc/src/platform-support/nvptx64-nvidia-cuda.md+1-1
......@@ -32,7 +32,7 @@ What format do binaries use by default? ELF, PE, something else?
3232## Building the target
3333
3434If Rust doesn't build the target by default, how can users build it? Can users
35just add it to the `target` list in `config.toml`?
35just add it to the `target` list in `bootstrap.toml`?
3636
3737## Building Rust programs
3838
src/doc/rustc/src/platform-support/openharmony.md+1-1
......@@ -145,7 +145,7 @@ linker = "/path/to/x86_64-unknown-linux-ohos-clang.sh"
145145## Building the target from source
146146
147147Instead of using `rustup`, you can instead build a rust toolchain from source.
148Create a `config.toml` with the following contents:
148Create a `bootstrap.toml` with the following contents:
149149
150150```toml
151151profile = "compiler"
src/doc/rustc/src/platform-support/pc-windows-gnullvm.md+1-1
......@@ -29,7 +29,7 @@ Like with any other Windows target, created binaries are in PE format.
2929
3030These targets can be easily cross-compiled
3131using [llvm-mingw](https://github.com/mstorsjo/llvm-mingw) toolchain or [MSYS2 CLANG*](https://www.msys2.org/docs/environments/) environments.
32Just fill `[target.*]` sections for both build and resulting compiler and set installation prefix in `config.toml`.
32Just fill `[target.*]` sections for both build and resulting compiler and set installation prefix in `bootstrap.toml`.
3333Then run `./x.py install`.
3434In my case I had ran `./x.py install --host x86_64-pc-windows-gnullvm --target x86_64-pc-windows-gnullvm` inside MSYS2 MINGW64 shell
3535so `x86_64-pc-windows-gnu` was my build toolchain.
src/doc/rustc/src/platform-support/powerpc64le-unknown-linux-musl.md+1-1
......@@ -23,7 +23,7 @@ The target can be built by enabling it for a `rustc` build.
2323target = ["powerpc64le-unknown-linux-musl"]
2424```
2525
26Make sure your C compiler is included in `$PATH`, then add it to the `config.toml`:
26Make sure your C compiler is included in `$PATH`, then add it to the `bootstrap.toml`:
2727
2828```toml
2929[target.powerpc64le-unknown-linux-musl]
src/doc/rustc/src/platform-support/redox.md+1-1
......@@ -27,7 +27,7 @@ Redox OS binaries use ELF as file format.
2727
2828## Building the target
2929
30You can build Rust with support for the targets by adding it to the `target` list in `config.toml`. In addition a copy of [relibc] needs to be present in the linker search path.
30You can build Rust with support for the targets by adding it to the `target` list in `bootstrap.toml`. In addition a copy of [relibc] needs to be present in the linker search path.
3131
3232```toml
3333[build]
src/doc/rustc/src/platform-support/riscv32im-risc0-zkvm-elf.md+1-1
......@@ -43,7 +43,7 @@ Calling `extern "C"` on the target uses the C calling convention outlined in the
4343## Building for the zkVM
4444
4545Programs for the zkVM could be built by adding it to the `target` list in
46`config.toml`. However, we recommend building programs in our starter template
46`bootstrap.toml`. However, we recommend building programs in our starter template
4747generated by the [cargo-risczero] utility and the [risc0-build] crate. This
4848crate calls `rustc` with `-C "link-arg=-Ttext=` so that it maps the text in the
4949appropriate location as well as generating variables that represent the ELF and
src/doc/rustc/src/platform-support/riscv32imac-unknown-xous-elf.md+1-1
......@@ -24,7 +24,7 @@ The target can be built by enabling it for a `rustc` build.
2424target = ["riscv32imac-unknown-xous-elf"]
2525```
2626
27Make sure your C compiler is included in `$PATH`, then add it to the `config.toml`:
27Make sure your C compiler is included in `$PATH`, then add it to the `bootstrap.toml`:
2828
2929```toml
3030[target.riscv32imac-unknown-xous-elf]
src/doc/rustc/src/platform-support/riscv64gc-unknown-linux-gnu.md+1-1
......@@ -26,7 +26,7 @@ These targets are distributed through `rustup`, and otherwise require no
2626special configuration.
2727
2828If you need to build your own Rust for some reason though, the targets can be
29enabled in `config.toml`. For example:
29enabled in `bootstrap.toml`. For example:
3030
3131```toml
3232[build]
src/doc/rustc/src/platform-support/riscv64gc-unknown-linux-musl.md+1-1
......@@ -22,7 +22,7 @@ The target can be built by enabling it for a `rustc` build.
2222target = ["riscv64gc-unknown-linux-musl"]
2323```
2424
25Make sure your C compiler is included in `$PATH`, then add it to the `config.toml`:
25Make sure your C compiler is included in `$PATH`, then add it to the `bootstrap.toml`:
2626
2727```toml
2828[target.riscv64gc-unknown-linux-musl]
src/doc/rustc/src/platform-support/s390x-unknown-linux-gnu.md+1-1
......@@ -34,7 +34,7 @@ This target is distributed through `rustup`, and otherwise requires no
3434special configuration.
3535
3636If you need to build your own Rust for some reason though, the target can be
37enabled in `config.toml`. For example:
37enabled in `bootstrap.toml`. For example:
3838
3939```toml
4040[build]
src/doc/rustc/src/platform-support/s390x-unknown-linux-musl.md+1-1
......@@ -33,7 +33,7 @@ Because it is Tier 3, Rust does not yet ship pre-compiled artifacts for this
3333target.
3434
3535Therefore, you can build Rust with support for the target by adding it to the
36target list in `config.toml`, a sample configuration is shown below.
36target list in `bootstrap.toml`, a sample configuration is shown below.
3737
3838```toml
3939[build]
src/doc/rustc/src/platform-support/sparc-unknown-none-elf.md+1-1
......@@ -34,7 +34,7 @@ considerations for binary layout will require linker options or linker scripts.
3434## Building the target
3535
3636You can build Rust with support for the target by adding it to the `target`
37list in `config.toml`:
37list in `bootstrap.toml`:
3838
3939```toml
4040[build]
src/doc/rustc/src/platform-support/unikraft-linux-musl.md+1-1
......@@ -34,7 +34,7 @@ Instead, the Unikraft build system will produce the final Unikernel image for th
3434
3535## Building the targets
3636
37You can build Rust with support for the targets by adding it to the `target` list in `config.toml`:
37You can build Rust with support for the targets by adding it to the `target` list in `bootstrap.toml`:
3838
3939```toml
4040[build]
src/doc/rustc/src/platform-support/unknown-uefi.md+1-1
......@@ -252,7 +252,7 @@ This section contains information on how to use std on UEFI.
252252
253253### Build std
254254The building std part is pretty much the same as the official [docs](https://rustc-dev-guide.rust-lang.org/getting-started.html).
255The linker that should be used is `rust-lld`. Here is a sample `config.toml`:
255The linker that should be used is `rust-lld`. Here is a sample `bootstrap.toml`:
256256```toml
257257[rust]
258258lld = true
src/doc/rustc/src/platform-support/vxworks.md+1-1
......@@ -33,7 +33,7 @@ Rust for each target can be cross-compiled with its specific target vsb configur
3333
3434## Building the target
3535
36You can build Rust with support for the targets by adding it to the `target` list in `config.toml`. In addition the workbench and wr-cc have to configured and activated.
36You can build Rust with support for the targets by adding it to the `target` list in `bootstrap.toml`. In addition the workbench and wr-cc have to configured and activated.
3737
3838```toml
3939[build]
src/doc/rustc/src/platform-support/wasm32-unknown-emscripten.md+1-1
......@@ -61,7 +61,7 @@ Building this target can be done by:
6161* Configure the `wasm32-unknown-emscripten` target to get built.
6262* Ensure the `WebAssembly` target backend is not disabled in LLVM.
6363
64These are all controlled through `config.toml` options. It should be possible
64These are all controlled through `bootstrap.toml` options. It should be possible
6565to build this target on any platform. A minimal example configuration would be:
6666
6767```toml
src/doc/rustc/src/platform-support/wasm32-unknown-unknown.md+1-1
......@@ -65,7 +65,7 @@ Building this target can be done by:
6565* Configure LLD to be built.
6666* Ensure the `WebAssembly` target backend is not disabled in LLVM.
6767
68These are all controlled through `config.toml` options. It should be possible
68These are all controlled through `bootstrap.toml` options. It should be possible
6969to build this target on any platform.
7070
7171## Building Rust programs
src/doc/rustc/src/platform-support/wasm32-wasip1-threads.md+2-2
......@@ -107,7 +107,7 @@ flag, for example:
107107
108108Users need to install or built wasi-sdk since release 20.0
109109https://github.com/WebAssembly/wasi-sdk/releases/tag/wasi-sdk-20
110and specify path to *wasi-root* `config.toml`
110and specify path to *wasi-root* `bootstrap.toml`
111111
112112```toml
113113[target.wasm32-wasip1-threads]
......@@ -115,7 +115,7 @@ wasi-root = ".../wasi-libc/sysroot"
115115```
116116
117117After that users can build this by adding it to the `target` list in
118`config.toml`, or with `-Zbuild-std`.
118`bootstrap.toml`, or with `-Zbuild-std`.
119119
120120## Building Rust programs
121121
src/doc/rustc/src/platform-support/wasm64-unknown-unknown.md+1-1
......@@ -64,7 +64,7 @@ This target does not support `panic=unwind` at this time.
6464## Building the target
6565
6666You can build Rust with support for the target by adding it to the `target`
67list in `config.toml`, and the target also requires `lld` to be built to work.
67list in `bootstrap.toml`, and the target also requires `lld` to be built to work.
6868
6969```toml
7070[build]
src/doc/rustc/src/platform-support/win7-windows-gnu.md+1-1
......@@ -23,7 +23,7 @@ Like any other Windows target, the created binaries are in PE format.
2323
2424## Building the target
2525
26You can build Rust with support for the targets by adding it to the target list in config.toml:
26You can build Rust with support for the targets by adding it to the target list in bootstrap.toml:
2727
2828```toml
2929[build]
src/doc/rustc/src/platform-support/win7-windows-msvc.md+2-2
......@@ -24,7 +24,7 @@ Like any other Windows target, the created binaries are in PE format.
2424
2525## Building the target
2626
27You can build Rust with support for the targets by adding it to the target list in config.toml:
27You can build Rust with support for the targets by adding it to the target list in bootstrap.toml:
2828
2929```toml
3030[build]
......@@ -73,7 +73,7 @@ Windows SDK, which can be acquired using [`xwin`](https://github.com/Jake-Shadle
7373 clang-cl /imsvc "$XWIN/crt/include" /imsvc "$XWIN/sdk/include/ucrt" /imsvc "$XWIN/sdk/include/um" /imsvc "$XWIN/sdk/include/shared" --target="x86_64-pc-windows-msvc" "$@"
7474 ```
7575
76- In your config.toml, add the following lines:
76- In your bootstrap.toml, add the following lines:
7777
7878 ```toml
7979 [target.x86_64-win7-windows-msvc]
src/doc/rustc/src/platform-support/x86_64-unknown-none.md+1-1
......@@ -39,7 +39,7 @@ scripts.
3939## Building the target
4040
4141You can build Rust with support for the target by adding it to the `target`
42list in `config.toml`:
42list in `bootstrap.toml`:
4343
4444```toml
4545[build]
src/doc/rustc/src/platform-support/x86_64h-apple-darwin.md+1-1
......@@ -29,7 +29,7 @@ respects.
2929## Building the target
3030
3131Users on Apple targets can build this by adding it to the `target` list in
32`config.toml`, or with `-Zbuild-std`.
32`bootstrap.toml`, or with `-Zbuild-std`.
3333
3434## Building Rust programs
3535
src/doc/unstable-book/src/compiler-flags/control-flow-guard.md+1-1
......@@ -56,4 +56,4 @@ $Env:RUSTFLAGS = "-Z control-flow-guard"
5656cargo +nightly build -Z build-std --target x86_64-pc-windows-msvc
5757```
5858
59Alternatively, if you are building the standard library from source, you can set `control-flow-guard = true` in the config.toml file.
59Alternatively, if you are building the standard library from source, you can set `control-flow-guard = true` in the bootstrap.toml file.
src/etc/completions/x.fish+46-46
......@@ -25,7 +25,7 @@ function __fish_x_using_subcommand
2525end
2626
2727complete -c x -n "__fish_x_needs_command" -l config -d 'TOML configuration file for build' -r -F
28complete -c x -n "__fish_x_needs_command" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
28complete -c x -n "__fish_x_needs_command" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
2929complete -c x -n "__fish_x_needs_command" -l build -d 'build target of the stage0 compiler' -r -f
3030complete -c x -n "__fish_x_needs_command" -l host -d 'host targets to build' -r -f
3131complete -c x -n "__fish_x_needs_command" -l target -d 'target targets to build' -r -f
......@@ -45,7 +45,7 @@ complete -c x -n "__fish_x_needs_command" -l rust-profile-generate -d 'generate
4545complete -c x -n "__fish_x_needs_command" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
4646complete -c x -n "__fish_x_needs_command" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
4747complete -c x -n "__fish_x_needs_command" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
48complete -c x -n "__fish_x_needs_command" -l set -d 'override options in config.toml' -r -f
48complete -c x -n "__fish_x_needs_command" -l set -d 'override options in bootstrap.toml' -r -f
4949complete -c x -n "__fish_x_needs_command" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
5050complete -c x -n "__fish_x_needs_command" -s i -l incremental -d 'use incremental compilation'
5151complete -c x -n "__fish_x_needs_command" -l include-default-paths -d 'include default paths in addition to the provided ones'
......@@ -75,7 +75,7 @@ complete -c x -n "__fish_x_needs_command" -a "suggest" -d 'Suggest a subset of t
7575complete -c x -n "__fish_x_needs_command" -a "vendor" -d 'Vendor dependencies'
7676complete -c x -n "__fish_x_needs_command" -a "perf" -d 'Perform profiling and benchmarking of the compiler using `rustc-perf`'
7777complete -c x -n "__fish_x_using_subcommand build" -l config -d 'TOML configuration file for build' -r -F
78complete -c x -n "__fish_x_using_subcommand build" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
78complete -c x -n "__fish_x_using_subcommand build" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
7979complete -c x -n "__fish_x_using_subcommand build" -l build -d 'build target of the stage0 compiler' -r -f
8080complete -c x -n "__fish_x_using_subcommand build" -l host -d 'host targets to build' -r -f
8181complete -c x -n "__fish_x_using_subcommand build" -l target -d 'target targets to build' -r -f
......@@ -95,7 +95,7 @@ complete -c x -n "__fish_x_using_subcommand build" -l rust-profile-generate -d '
9595complete -c x -n "__fish_x_using_subcommand build" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
9696complete -c x -n "__fish_x_using_subcommand build" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
9797complete -c x -n "__fish_x_using_subcommand build" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
98complete -c x -n "__fish_x_using_subcommand build" -l set -d 'override options in config.toml' -r -f
98complete -c x -n "__fish_x_using_subcommand build" -l set -d 'override options in bootstrap.toml' -r -f
9999complete -c x -n "__fish_x_using_subcommand build" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
100100complete -c x -n "__fish_x_using_subcommand build" -s i -l incremental -d 'use incremental compilation'
101101complete -c x -n "__fish_x_using_subcommand build" -l include-default-paths -d 'include default paths in addition to the provided ones'
......@@ -108,7 +108,7 @@ complete -c x -n "__fish_x_using_subcommand build" -l enable-bolt-settings -d 'E
108108complete -c x -n "__fish_x_using_subcommand build" -l skip-stage0-validation -d 'Skip stage0 compiler validation'
109109complete -c x -n "__fish_x_using_subcommand build" -s h -l help -d 'Print help (see more with \'--help\')'
110110complete -c x -n "__fish_x_using_subcommand check" -l config -d 'TOML configuration file for build' -r -F
111complete -c x -n "__fish_x_using_subcommand check" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
111complete -c x -n "__fish_x_using_subcommand check" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
112112complete -c x -n "__fish_x_using_subcommand check" -l build -d 'build target of the stage0 compiler' -r -f
113113complete -c x -n "__fish_x_using_subcommand check" -l host -d 'host targets to build' -r -f
114114complete -c x -n "__fish_x_using_subcommand check" -l target -d 'target targets to build' -r -f
......@@ -128,7 +128,7 @@ complete -c x -n "__fish_x_using_subcommand check" -l rust-profile-generate -d '
128128complete -c x -n "__fish_x_using_subcommand check" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
129129complete -c x -n "__fish_x_using_subcommand check" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
130130complete -c x -n "__fish_x_using_subcommand check" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
131complete -c x -n "__fish_x_using_subcommand check" -l set -d 'override options in config.toml' -r -f
131complete -c x -n "__fish_x_using_subcommand check" -l set -d 'override options in bootstrap.toml' -r -f
132132complete -c x -n "__fish_x_using_subcommand check" -l all-targets -d 'Check all targets'
133133complete -c x -n "__fish_x_using_subcommand check" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
134134complete -c x -n "__fish_x_using_subcommand check" -s i -l incremental -d 'use incremental compilation'
......@@ -146,7 +146,7 @@ complete -c x -n "__fish_x_using_subcommand clippy" -s D -d 'clippy lints to den
146146complete -c x -n "__fish_x_using_subcommand clippy" -s W -d 'clippy lints to warn on' -r
147147complete -c x -n "__fish_x_using_subcommand clippy" -s F -d 'clippy lints to forbid' -r
148148complete -c x -n "__fish_x_using_subcommand clippy" -l config -d 'TOML configuration file for build' -r -F
149complete -c x -n "__fish_x_using_subcommand clippy" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
149complete -c x -n "__fish_x_using_subcommand clippy" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
150150complete -c x -n "__fish_x_using_subcommand clippy" -l build -d 'build target of the stage0 compiler' -r -f
151151complete -c x -n "__fish_x_using_subcommand clippy" -l host -d 'host targets to build' -r -f
152152complete -c x -n "__fish_x_using_subcommand clippy" -l target -d 'target targets to build' -r -f
......@@ -166,7 +166,7 @@ complete -c x -n "__fish_x_using_subcommand clippy" -l rust-profile-generate -d
166166complete -c x -n "__fish_x_using_subcommand clippy" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
167167complete -c x -n "__fish_x_using_subcommand clippy" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
168168complete -c x -n "__fish_x_using_subcommand clippy" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
169complete -c x -n "__fish_x_using_subcommand clippy" -l set -d 'override options in config.toml' -r -f
169complete -c x -n "__fish_x_using_subcommand clippy" -l set -d 'override options in bootstrap.toml' -r -f
170170complete -c x -n "__fish_x_using_subcommand clippy" -l fix
171171complete -c x -n "__fish_x_using_subcommand clippy" -l allow-dirty
172172complete -c x -n "__fish_x_using_subcommand clippy" -l allow-staged
......@@ -182,7 +182,7 @@ complete -c x -n "__fish_x_using_subcommand clippy" -l enable-bolt-settings -d '
182182complete -c x -n "__fish_x_using_subcommand clippy" -l skip-stage0-validation -d 'Skip stage0 compiler validation'
183183complete -c x -n "__fish_x_using_subcommand clippy" -s h -l help -d 'Print help (see more with \'--help\')'
184184complete -c x -n "__fish_x_using_subcommand fix" -l config -d 'TOML configuration file for build' -r -F
185complete -c x -n "__fish_x_using_subcommand fix" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
185complete -c x -n "__fish_x_using_subcommand fix" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
186186complete -c x -n "__fish_x_using_subcommand fix" -l build -d 'build target of the stage0 compiler' -r -f
187187complete -c x -n "__fish_x_using_subcommand fix" -l host -d 'host targets to build' -r -f
188188complete -c x -n "__fish_x_using_subcommand fix" -l target -d 'target targets to build' -r -f
......@@ -202,7 +202,7 @@ complete -c x -n "__fish_x_using_subcommand fix" -l rust-profile-generate -d 'ge
202202complete -c x -n "__fish_x_using_subcommand fix" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
203203complete -c x -n "__fish_x_using_subcommand fix" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
204204complete -c x -n "__fish_x_using_subcommand fix" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
205complete -c x -n "__fish_x_using_subcommand fix" -l set -d 'override options in config.toml' -r -f
205complete -c x -n "__fish_x_using_subcommand fix" -l set -d 'override options in bootstrap.toml' -r -f
206206complete -c x -n "__fish_x_using_subcommand fix" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
207207complete -c x -n "__fish_x_using_subcommand fix" -s i -l incremental -d 'use incremental compilation'
208208complete -c x -n "__fish_x_using_subcommand fix" -l include-default-paths -d 'include default paths in addition to the provided ones'
......@@ -215,7 +215,7 @@ complete -c x -n "__fish_x_using_subcommand fix" -l enable-bolt-settings -d 'Ena
215215complete -c x -n "__fish_x_using_subcommand fix" -l skip-stage0-validation -d 'Skip stage0 compiler validation'
216216complete -c x -n "__fish_x_using_subcommand fix" -s h -l help -d 'Print help (see more with \'--help\')'
217217complete -c x -n "__fish_x_using_subcommand fmt" -l config -d 'TOML configuration file for build' -r -F
218complete -c x -n "__fish_x_using_subcommand fmt" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
218complete -c x -n "__fish_x_using_subcommand fmt" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
219219complete -c x -n "__fish_x_using_subcommand fmt" -l build -d 'build target of the stage0 compiler' -r -f
220220complete -c x -n "__fish_x_using_subcommand fmt" -l host -d 'host targets to build' -r -f
221221complete -c x -n "__fish_x_using_subcommand fmt" -l target -d 'target targets to build' -r -f
......@@ -235,7 +235,7 @@ complete -c x -n "__fish_x_using_subcommand fmt" -l rust-profile-generate -d 'ge
235235complete -c x -n "__fish_x_using_subcommand fmt" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
236236complete -c x -n "__fish_x_using_subcommand fmt" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
237237complete -c x -n "__fish_x_using_subcommand fmt" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
238complete -c x -n "__fish_x_using_subcommand fmt" -l set -d 'override options in config.toml' -r -f
238complete -c x -n "__fish_x_using_subcommand fmt" -l set -d 'override options in bootstrap.toml' -r -f
239239complete -c x -n "__fish_x_using_subcommand fmt" -l check -d 'check formatting instead of applying'
240240complete -c x -n "__fish_x_using_subcommand fmt" -l all -d 'apply to all appropriate files, not just those that have been modified'
241241complete -c x -n "__fish_x_using_subcommand fmt" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
......@@ -250,7 +250,7 @@ complete -c x -n "__fish_x_using_subcommand fmt" -l enable-bolt-settings -d 'Ena
250250complete -c x -n "__fish_x_using_subcommand fmt" -l skip-stage0-validation -d 'Skip stage0 compiler validation'
251251complete -c x -n "__fish_x_using_subcommand fmt" -s h -l help -d 'Print help (see more with \'--help\')'
252252complete -c x -n "__fish_x_using_subcommand doc" -l config -d 'TOML configuration file for build' -r -F
253complete -c x -n "__fish_x_using_subcommand doc" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
253complete -c x -n "__fish_x_using_subcommand doc" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
254254complete -c x -n "__fish_x_using_subcommand doc" -l build -d 'build target of the stage0 compiler' -r -f
255255complete -c x -n "__fish_x_using_subcommand doc" -l host -d 'host targets to build' -r -f
256256complete -c x -n "__fish_x_using_subcommand doc" -l target -d 'target targets to build' -r -f
......@@ -270,7 +270,7 @@ complete -c x -n "__fish_x_using_subcommand doc" -l rust-profile-generate -d 'ge
270270complete -c x -n "__fish_x_using_subcommand doc" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
271271complete -c x -n "__fish_x_using_subcommand doc" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
272272complete -c x -n "__fish_x_using_subcommand doc" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
273complete -c x -n "__fish_x_using_subcommand doc" -l set -d 'override options in config.toml' -r -f
273complete -c x -n "__fish_x_using_subcommand doc" -l set -d 'override options in bootstrap.toml' -r -f
274274complete -c x -n "__fish_x_using_subcommand doc" -l open -d 'open the docs in a browser'
275275complete -c x -n "__fish_x_using_subcommand doc" -l json -d 'render the documentation in JSON format in addition to the usual HTML format'
276276complete -c x -n "__fish_x_using_subcommand doc" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
......@@ -291,7 +291,7 @@ complete -c x -n "__fish_x_using_subcommand test" -l compare-mode -d 'mode descr
291291complete -c x -n "__fish_x_using_subcommand test" -l pass -d 'force {check,build,run}-pass tests to this mode' -r
292292complete -c x -n "__fish_x_using_subcommand test" -l run -d 'whether to execute run-* tests' -r
293293complete -c x -n "__fish_x_using_subcommand test" -l config -d 'TOML configuration file for build' -r -F
294complete -c x -n "__fish_x_using_subcommand test" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
294complete -c x -n "__fish_x_using_subcommand test" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
295295complete -c x -n "__fish_x_using_subcommand test" -l build -d 'build target of the stage0 compiler' -r -f
296296complete -c x -n "__fish_x_using_subcommand test" -l host -d 'host targets to build' -r -f
297297complete -c x -n "__fish_x_using_subcommand test" -l target -d 'target targets to build' -r -f
......@@ -311,7 +311,7 @@ complete -c x -n "__fish_x_using_subcommand test" -l rust-profile-generate -d 'g
311311complete -c x -n "__fish_x_using_subcommand test" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
312312complete -c x -n "__fish_x_using_subcommand test" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
313313complete -c x -n "__fish_x_using_subcommand test" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
314complete -c x -n "__fish_x_using_subcommand test" -l set -d 'override options in config.toml' -r -f
314complete -c x -n "__fish_x_using_subcommand test" -l set -d 'override options in bootstrap.toml' -r -f
315315complete -c x -n "__fish_x_using_subcommand test" -l no-fail-fast -d 'run all tests regardless of failure'
316316complete -c x -n "__fish_x_using_subcommand test" -l no-doc -d 'do not run doc tests'
317317complete -c x -n "__fish_x_using_subcommand test" -l doc -d 'only run doc tests'
......@@ -333,7 +333,7 @@ complete -c x -n "__fish_x_using_subcommand test" -l skip-stage0-validation -d '
333333complete -c x -n "__fish_x_using_subcommand test" -s h -l help -d 'Print help (see more with \'--help\')'
334334complete -c x -n "__fish_x_using_subcommand miri" -l test-args -d 'extra arguments to be passed for the test tool being used (e.g. libtest, compiletest or rustdoc)' -r
335335complete -c x -n "__fish_x_using_subcommand miri" -l config -d 'TOML configuration file for build' -r -F
336complete -c x -n "__fish_x_using_subcommand miri" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
336complete -c x -n "__fish_x_using_subcommand miri" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
337337complete -c x -n "__fish_x_using_subcommand miri" -l build -d 'build target of the stage0 compiler' -r -f
338338complete -c x -n "__fish_x_using_subcommand miri" -l host -d 'host targets to build' -r -f
339339complete -c x -n "__fish_x_using_subcommand miri" -l target -d 'target targets to build' -r -f
......@@ -353,7 +353,7 @@ complete -c x -n "__fish_x_using_subcommand miri" -l rust-profile-generate -d 'g
353353complete -c x -n "__fish_x_using_subcommand miri" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
354354complete -c x -n "__fish_x_using_subcommand miri" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
355355complete -c x -n "__fish_x_using_subcommand miri" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
356complete -c x -n "__fish_x_using_subcommand miri" -l set -d 'override options in config.toml' -r -f
356complete -c x -n "__fish_x_using_subcommand miri" -l set -d 'override options in bootstrap.toml' -r -f
357357complete -c x -n "__fish_x_using_subcommand miri" -l no-fail-fast -d 'run all tests regardless of failure'
358358complete -c x -n "__fish_x_using_subcommand miri" -l no-doc -d 'do not run doc tests'
359359complete -c x -n "__fish_x_using_subcommand miri" -l doc -d 'only run doc tests'
......@@ -370,7 +370,7 @@ complete -c x -n "__fish_x_using_subcommand miri" -l skip-stage0-validation -d '
370370complete -c x -n "__fish_x_using_subcommand miri" -s h -l help -d 'Print help (see more with \'--help\')'
371371complete -c x -n "__fish_x_using_subcommand bench" -l test-args -r
372372complete -c x -n "__fish_x_using_subcommand bench" -l config -d 'TOML configuration file for build' -r -F
373complete -c x -n "__fish_x_using_subcommand bench" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
373complete -c x -n "__fish_x_using_subcommand bench" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
374374complete -c x -n "__fish_x_using_subcommand bench" -l build -d 'build target of the stage0 compiler' -r -f
375375complete -c x -n "__fish_x_using_subcommand bench" -l host -d 'host targets to build' -r -f
376376complete -c x -n "__fish_x_using_subcommand bench" -l target -d 'target targets to build' -r -f
......@@ -390,7 +390,7 @@ complete -c x -n "__fish_x_using_subcommand bench" -l rust-profile-generate -d '
390390complete -c x -n "__fish_x_using_subcommand bench" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
391391complete -c x -n "__fish_x_using_subcommand bench" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
392392complete -c x -n "__fish_x_using_subcommand bench" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
393complete -c x -n "__fish_x_using_subcommand bench" -l set -d 'override options in config.toml' -r -f
393complete -c x -n "__fish_x_using_subcommand bench" -l set -d 'override options in bootstrap.toml' -r -f
394394complete -c x -n "__fish_x_using_subcommand bench" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
395395complete -c x -n "__fish_x_using_subcommand bench" -s i -l incremental -d 'use incremental compilation'
396396complete -c x -n "__fish_x_using_subcommand bench" -l include-default-paths -d 'include default paths in addition to the provided ones'
......@@ -404,7 +404,7 @@ complete -c x -n "__fish_x_using_subcommand bench" -l skip-stage0-validation -d
404404complete -c x -n "__fish_x_using_subcommand bench" -s h -l help -d 'Print help (see more with \'--help\')'
405405complete -c x -n "__fish_x_using_subcommand clean" -l stage -d 'Clean a specific stage without touching other artifacts. By default, every stage is cleaned if this option is not used' -r
406406complete -c x -n "__fish_x_using_subcommand clean" -l config -d 'TOML configuration file for build' -r -F
407complete -c x -n "__fish_x_using_subcommand clean" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
407complete -c x -n "__fish_x_using_subcommand clean" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
408408complete -c x -n "__fish_x_using_subcommand clean" -l build -d 'build target of the stage0 compiler' -r -f
409409complete -c x -n "__fish_x_using_subcommand clean" -l host -d 'host targets to build' -r -f
410410complete -c x -n "__fish_x_using_subcommand clean" -l target -d 'target targets to build' -r -f
......@@ -423,7 +423,7 @@ complete -c x -n "__fish_x_using_subcommand clean" -l rust-profile-generate -d '
423423complete -c x -n "__fish_x_using_subcommand clean" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
424424complete -c x -n "__fish_x_using_subcommand clean" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
425425complete -c x -n "__fish_x_using_subcommand clean" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
426complete -c x -n "__fish_x_using_subcommand clean" -l set -d 'override options in config.toml' -r -f
426complete -c x -n "__fish_x_using_subcommand clean" -l set -d 'override options in bootstrap.toml' -r -f
427427complete -c x -n "__fish_x_using_subcommand clean" -l all -d 'Clean the entire build directory (not used by default)'
428428complete -c x -n "__fish_x_using_subcommand clean" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
429429complete -c x -n "__fish_x_using_subcommand clean" -s i -l incremental -d 'use incremental compilation'
......@@ -437,7 +437,7 @@ complete -c x -n "__fish_x_using_subcommand clean" -l enable-bolt-settings -d 'E
437437complete -c x -n "__fish_x_using_subcommand clean" -l skip-stage0-validation -d 'Skip stage0 compiler validation'
438438complete -c x -n "__fish_x_using_subcommand clean" -s h -l help -d 'Print help (see more with \'--help\')'
439439complete -c x -n "__fish_x_using_subcommand dist" -l config -d 'TOML configuration file for build' -r -F
440complete -c x -n "__fish_x_using_subcommand dist" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
440complete -c x -n "__fish_x_using_subcommand dist" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
441441complete -c x -n "__fish_x_using_subcommand dist" -l build -d 'build target of the stage0 compiler' -r -f
442442complete -c x -n "__fish_x_using_subcommand dist" -l host -d 'host targets to build' -r -f
443443complete -c x -n "__fish_x_using_subcommand dist" -l target -d 'target targets to build' -r -f
......@@ -457,7 +457,7 @@ complete -c x -n "__fish_x_using_subcommand dist" -l rust-profile-generate -d 'g
457457complete -c x -n "__fish_x_using_subcommand dist" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
458458complete -c x -n "__fish_x_using_subcommand dist" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
459459complete -c x -n "__fish_x_using_subcommand dist" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
460complete -c x -n "__fish_x_using_subcommand dist" -l set -d 'override options in config.toml' -r -f
460complete -c x -n "__fish_x_using_subcommand dist" -l set -d 'override options in bootstrap.toml' -r -f
461461complete -c x -n "__fish_x_using_subcommand dist" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
462462complete -c x -n "__fish_x_using_subcommand dist" -s i -l incremental -d 'use incremental compilation'
463463complete -c x -n "__fish_x_using_subcommand dist" -l include-default-paths -d 'include default paths in addition to the provided ones'
......@@ -470,7 +470,7 @@ complete -c x -n "__fish_x_using_subcommand dist" -l enable-bolt-settings -d 'En
470470complete -c x -n "__fish_x_using_subcommand dist" -l skip-stage0-validation -d 'Skip stage0 compiler validation'
471471complete -c x -n "__fish_x_using_subcommand dist" -s h -l help -d 'Print help (see more with \'--help\')'
472472complete -c x -n "__fish_x_using_subcommand install" -l config -d 'TOML configuration file for build' -r -F
473complete -c x -n "__fish_x_using_subcommand install" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
473complete -c x -n "__fish_x_using_subcommand install" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
474474complete -c x -n "__fish_x_using_subcommand install" -l build -d 'build target of the stage0 compiler' -r -f
475475complete -c x -n "__fish_x_using_subcommand install" -l host -d 'host targets to build' -r -f
476476complete -c x -n "__fish_x_using_subcommand install" -l target -d 'target targets to build' -r -f
......@@ -490,7 +490,7 @@ complete -c x -n "__fish_x_using_subcommand install" -l rust-profile-generate -d
490490complete -c x -n "__fish_x_using_subcommand install" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
491491complete -c x -n "__fish_x_using_subcommand install" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
492492complete -c x -n "__fish_x_using_subcommand install" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
493complete -c x -n "__fish_x_using_subcommand install" -l set -d 'override options in config.toml' -r -f
493complete -c x -n "__fish_x_using_subcommand install" -l set -d 'override options in bootstrap.toml' -r -f
494494complete -c x -n "__fish_x_using_subcommand install" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
495495complete -c x -n "__fish_x_using_subcommand install" -s i -l incremental -d 'use incremental compilation'
496496complete -c x -n "__fish_x_using_subcommand install" -l include-default-paths -d 'include default paths in addition to the provided ones'
......@@ -504,7 +504,7 @@ complete -c x -n "__fish_x_using_subcommand install" -l skip-stage0-validation -
504504complete -c x -n "__fish_x_using_subcommand install" -s h -l help -d 'Print help (see more with \'--help\')'
505505complete -c x -n "__fish_x_using_subcommand run" -l args -d 'arguments for the tool' -r
506506complete -c x -n "__fish_x_using_subcommand run" -l config -d 'TOML configuration file for build' -r -F
507complete -c x -n "__fish_x_using_subcommand run" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
507complete -c x -n "__fish_x_using_subcommand run" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
508508complete -c x -n "__fish_x_using_subcommand run" -l build -d 'build target of the stage0 compiler' -r -f
509509complete -c x -n "__fish_x_using_subcommand run" -l host -d 'host targets to build' -r -f
510510complete -c x -n "__fish_x_using_subcommand run" -l target -d 'target targets to build' -r -f
......@@ -524,7 +524,7 @@ complete -c x -n "__fish_x_using_subcommand run" -l rust-profile-generate -d 'ge
524524complete -c x -n "__fish_x_using_subcommand run" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
525525complete -c x -n "__fish_x_using_subcommand run" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
526526complete -c x -n "__fish_x_using_subcommand run" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
527complete -c x -n "__fish_x_using_subcommand run" -l set -d 'override options in config.toml' -r -f
527complete -c x -n "__fish_x_using_subcommand run" -l set -d 'override options in bootstrap.toml' -r -f
528528complete -c x -n "__fish_x_using_subcommand run" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
529529complete -c x -n "__fish_x_using_subcommand run" -s i -l incremental -d 'use incremental compilation'
530530complete -c x -n "__fish_x_using_subcommand run" -l include-default-paths -d 'include default paths in addition to the provided ones'
......@@ -537,7 +537,7 @@ complete -c x -n "__fish_x_using_subcommand run" -l enable-bolt-settings -d 'Ena
537537complete -c x -n "__fish_x_using_subcommand run" -l skip-stage0-validation -d 'Skip stage0 compiler validation'
538538complete -c x -n "__fish_x_using_subcommand run" -s h -l help -d 'Print help (see more with \'--help\')'
539539complete -c x -n "__fish_x_using_subcommand setup" -l config -d 'TOML configuration file for build' -r -F
540complete -c x -n "__fish_x_using_subcommand setup" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
540complete -c x -n "__fish_x_using_subcommand setup" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
541541complete -c x -n "__fish_x_using_subcommand setup" -l build -d 'build target of the stage0 compiler' -r -f
542542complete -c x -n "__fish_x_using_subcommand setup" -l host -d 'host targets to build' -r -f
543543complete -c x -n "__fish_x_using_subcommand setup" -l target -d 'target targets to build' -r -f
......@@ -557,7 +557,7 @@ complete -c x -n "__fish_x_using_subcommand setup" -l rust-profile-generate -d '
557557complete -c x -n "__fish_x_using_subcommand setup" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
558558complete -c x -n "__fish_x_using_subcommand setup" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
559559complete -c x -n "__fish_x_using_subcommand setup" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
560complete -c x -n "__fish_x_using_subcommand setup" -l set -d 'override options in config.toml' -r -f
560complete -c x -n "__fish_x_using_subcommand setup" -l set -d 'override options in bootstrap.toml' -r -f
561561complete -c x -n "__fish_x_using_subcommand setup" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
562562complete -c x -n "__fish_x_using_subcommand setup" -s i -l incremental -d 'use incremental compilation'
563563complete -c x -n "__fish_x_using_subcommand setup" -l include-default-paths -d 'include default paths in addition to the provided ones'
......@@ -570,7 +570,7 @@ complete -c x -n "__fish_x_using_subcommand setup" -l enable-bolt-settings -d 'E
570570complete -c x -n "__fish_x_using_subcommand setup" -l skip-stage0-validation -d 'Skip stage0 compiler validation'
571571complete -c x -n "__fish_x_using_subcommand setup" -s h -l help -d 'Print help (see more with \'--help\')'
572572complete -c x -n "__fish_x_using_subcommand suggest" -l config -d 'TOML configuration file for build' -r -F
573complete -c x -n "__fish_x_using_subcommand suggest" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
573complete -c x -n "__fish_x_using_subcommand suggest" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
574574complete -c x -n "__fish_x_using_subcommand suggest" -l build -d 'build target of the stage0 compiler' -r -f
575575complete -c x -n "__fish_x_using_subcommand suggest" -l host -d 'host targets to build' -r -f
576576complete -c x -n "__fish_x_using_subcommand suggest" -l target -d 'target targets to build' -r -f
......@@ -590,7 +590,7 @@ complete -c x -n "__fish_x_using_subcommand suggest" -l rust-profile-generate -d
590590complete -c x -n "__fish_x_using_subcommand suggest" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
591591complete -c x -n "__fish_x_using_subcommand suggest" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
592592complete -c x -n "__fish_x_using_subcommand suggest" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
593complete -c x -n "__fish_x_using_subcommand suggest" -l set -d 'override options in config.toml' -r -f
593complete -c x -n "__fish_x_using_subcommand suggest" -l set -d 'override options in bootstrap.toml' -r -f
594594complete -c x -n "__fish_x_using_subcommand suggest" -l run -d 'run suggested tests'
595595complete -c x -n "__fish_x_using_subcommand suggest" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
596596complete -c x -n "__fish_x_using_subcommand suggest" -s i -l incremental -d 'use incremental compilation'
......@@ -605,7 +605,7 @@ complete -c x -n "__fish_x_using_subcommand suggest" -l skip-stage0-validation -
605605complete -c x -n "__fish_x_using_subcommand suggest" -s h -l help -d 'Print help (see more with \'--help\')'
606606complete -c x -n "__fish_x_using_subcommand vendor" -l sync -d 'Additional `Cargo.toml` to sync and vendor' -r -F
607607complete -c x -n "__fish_x_using_subcommand vendor" -l config -d 'TOML configuration file for build' -r -F
608complete -c x -n "__fish_x_using_subcommand vendor" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
608complete -c x -n "__fish_x_using_subcommand vendor" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
609609complete -c x -n "__fish_x_using_subcommand vendor" -l build -d 'build target of the stage0 compiler' -r -f
610610complete -c x -n "__fish_x_using_subcommand vendor" -l host -d 'host targets to build' -r -f
611611complete -c x -n "__fish_x_using_subcommand vendor" -l target -d 'target targets to build' -r -f
......@@ -625,7 +625,7 @@ complete -c x -n "__fish_x_using_subcommand vendor" -l rust-profile-generate -d
625625complete -c x -n "__fish_x_using_subcommand vendor" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
626626complete -c x -n "__fish_x_using_subcommand vendor" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
627627complete -c x -n "__fish_x_using_subcommand vendor" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
628complete -c x -n "__fish_x_using_subcommand vendor" -l set -d 'override options in config.toml' -r -f
628complete -c x -n "__fish_x_using_subcommand vendor" -l set -d 'override options in bootstrap.toml' -r -f
629629complete -c x -n "__fish_x_using_subcommand vendor" -l versioned-dirs -d 'Always include version in subdir name'
630630complete -c x -n "__fish_x_using_subcommand vendor" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
631631complete -c x -n "__fish_x_using_subcommand vendor" -s i -l incremental -d 'use incremental compilation'
......@@ -639,7 +639,7 @@ complete -c x -n "__fish_x_using_subcommand vendor" -l enable-bolt-settings -d '
639639complete -c x -n "__fish_x_using_subcommand vendor" -l skip-stage0-validation -d 'Skip stage0 compiler validation'
640640complete -c x -n "__fish_x_using_subcommand vendor" -s h -l help -d 'Print help (see more with \'--help\')'
641641complete -c x -n "__fish_x_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -l config -d 'TOML configuration file for build' -r -F
642complete -c x -n "__fish_x_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
642complete -c x -n "__fish_x_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
643643complete -c x -n "__fish_x_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -l build -d 'build target of the stage0 compiler' -r -f
644644complete -c x -n "__fish_x_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -l host -d 'host targets to build' -r -f
645645complete -c x -n "__fish_x_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -l target -d 'target targets to build' -r -f
......@@ -659,7 +659,7 @@ complete -c x -n "__fish_x_using_subcommand perf; and not __fish_seen_subcommand
659659complete -c x -n "__fish_x_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
660660complete -c x -n "__fish_x_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
661661complete -c x -n "__fish_x_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
662complete -c x -n "__fish_x_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -l set -d 'override options in config.toml' -r -f
662complete -c x -n "__fish_x_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -l set -d 'override options in bootstrap.toml' -r -f
663663complete -c x -n "__fish_x_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
664664complete -c x -n "__fish_x_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -s i -l incremental -d 'use incremental compilation'
665665complete -c x -n "__fish_x_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -l include-default-paths -d 'include default paths in addition to the provided ones'
......@@ -681,7 +681,7 @@ complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_fro
681681complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l scenarios -d 'Select the scenarios that should be benchmarked' -r -f -a "{Full\t'',IncrFull\t'',IncrUnchanged\t'',IncrPatched\t''}"
682682complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l profiles -d 'Select the profiles that should be benchmarked' -r -f -a "{Check\t'',Debug\t'',Doc\t'',Opt\t'',Clippy\t''}"
683683complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l config -d 'TOML configuration file for build' -r -F
684complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
684complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
685685complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l build -d 'build target of the stage0 compiler' -r -f
686686complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l host -d 'host targets to build' -r -f
687687complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l target -d 'target targets to build' -r -f
......@@ -700,7 +700,7 @@ complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_fro
700700complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
701701complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
702702complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
703complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l set -d 'override options in config.toml' -r -f
703complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l set -d 'override options in bootstrap.toml' -r -f
704704complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
705705complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -s i -l incremental -d 'use incremental compilation'
706706complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l include-default-paths -d 'include default paths in addition to the provided ones'
......@@ -717,7 +717,7 @@ complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_fro
717717complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from samply" -l scenarios -d 'Select the scenarios that should be benchmarked' -r -f -a "{Full\t'',IncrFull\t'',IncrUnchanged\t'',IncrPatched\t''}"
718718complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from samply" -l profiles -d 'Select the profiles that should be benchmarked' -r -f -a "{Check\t'',Debug\t'',Doc\t'',Opt\t'',Clippy\t''}"
719719complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from samply" -l config -d 'TOML configuration file for build' -r -F
720complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from samply" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
720complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from samply" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
721721complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from samply" -l build -d 'build target of the stage0 compiler' -r -f
722722complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from samply" -l host -d 'host targets to build' -r -f
723723complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from samply" -l target -d 'target targets to build' -r -f
......@@ -736,7 +736,7 @@ complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_fro
736736complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from samply" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
737737complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from samply" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
738738complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from samply" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
739complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from samply" -l set -d 'override options in config.toml' -r -f
739complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from samply" -l set -d 'override options in bootstrap.toml' -r -f
740740complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from samply" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
741741complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from samply" -s i -l incremental -d 'use incremental compilation'
742742complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from samply" -l include-default-paths -d 'include default paths in addition to the provided ones'
......@@ -753,7 +753,7 @@ complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_fro
753753complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l scenarios -d 'Select the scenarios that should be benchmarked' -r -f -a "{Full\t'',IncrFull\t'',IncrUnchanged\t'',IncrPatched\t''}"
754754complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l profiles -d 'Select the profiles that should be benchmarked' -r -f -a "{Check\t'',Debug\t'',Doc\t'',Opt\t'',Clippy\t''}"
755755complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l config -d 'TOML configuration file for build' -r -F
756complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
756complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
757757complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l build -d 'build target of the stage0 compiler' -r -f
758758complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l host -d 'host targets to build' -r -f
759759complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l target -d 'target targets to build' -r -f
......@@ -772,7 +772,7 @@ complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_fro
772772complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
773773complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
774774complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
775complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l set -d 'override options in config.toml' -r -f
775complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l set -d 'override options in bootstrap.toml' -r -f
776776complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
777777complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -s i -l incremental -d 'use incremental compilation'
778778complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l include-default-paths -d 'include default paths in addition to the provided ones'
......@@ -789,7 +789,7 @@ complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_fro
789789complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l scenarios -d 'Select the scenarios that should be benchmarked' -r -f -a "{Full\t'',IncrFull\t'',IncrUnchanged\t'',IncrPatched\t''}"
790790complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l profiles -d 'Select the profiles that should be benchmarked' -r -f -a "{Check\t'',Debug\t'',Doc\t'',Opt\t'',Clippy\t''}"
791791complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l config -d 'TOML configuration file for build' -r -F
792complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
792complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
793793complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l build -d 'build target of the stage0 compiler' -r -f
794794complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l host -d 'host targets to build' -r -f
795795complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l target -d 'target targets to build' -r -f
......@@ -808,7 +808,7 @@ complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_fro
808808complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
809809complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
810810complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
811complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l set -d 'override options in config.toml' -r -f
811complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l set -d 'override options in bootstrap.toml' -r -f
812812complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
813813complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -s i -l incremental -d 'use incremental compilation'
814814complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l include-default-paths -d 'include default paths in addition to the provided ones'
......@@ -821,7 +821,7 @@ complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_fro
821821complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l skip-stage0-validation -d 'Skip stage0 compiler validation'
822822complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -s h -l help -d 'Print help (see more with \'--help\')'
823823complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from compare" -l config -d 'TOML configuration file for build' -r -F
824complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from compare" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
824complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from compare" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
825825complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from compare" -l build -d 'build target of the stage0 compiler' -r -f
826826complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from compare" -l host -d 'host targets to build' -r -f
827827complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from compare" -l target -d 'target targets to build' -r -f
......@@ -841,7 +841,7 @@ complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_fro
841841complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from compare" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
842842complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from compare" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
843843complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from compare" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
844complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from compare" -l set -d 'override options in config.toml' -r -f
844complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from compare" -l set -d 'override options in bootstrap.toml' -r -f
845845complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from compare" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
846846complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from compare" -s i -l incremental -d 'use incremental compilation'
847847complete -c x -n "__fish_x_using_subcommand perf; and __fish_seen_subcommand_from compare" -l include-default-paths -d 'include default paths in addition to the provided ones'
src/etc/completions/x.ps1+46-46
......@@ -22,7 +22,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
2222 $completions = @(switch ($command) {
2323 'x' {
2424 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
25 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
25 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
2626 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
2727 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
2828 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -43,7 +43,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
4343 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
4444 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
4545 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
46 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
46 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
4747 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
4848 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
4949 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
......@@ -79,7 +79,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
7979 }
8080 'x;build' {
8181 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
82 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
82 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
8383 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
8484 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
8585 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -100,7 +100,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
100100 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
101101 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
102102 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
103 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
103 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
104104 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
105105 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
106106 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
......@@ -119,7 +119,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
119119 }
120120 'x;check' {
121121 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
122 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
122 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
123123 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
124124 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
125125 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -140,7 +140,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
140140 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
141141 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
142142 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
143 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
143 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
144144 [CompletionResult]::new('--all-targets', '--all-targets', [CompletionResultType]::ParameterName, 'Check all targets')
145145 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
146146 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
......@@ -164,7 +164,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
164164 [CompletionResult]::new('-W', '-W ', [CompletionResultType]::ParameterName, 'clippy lints to warn on')
165165 [CompletionResult]::new('-F', '-F ', [CompletionResultType]::ParameterName, 'clippy lints to forbid')
166166 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
167 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
167 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
168168 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
169169 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
170170 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -185,7 +185,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
185185 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
186186 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
187187 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
188 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
188 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
189189 [CompletionResult]::new('--fix', '--fix', [CompletionResultType]::ParameterName, 'fix')
190190 [CompletionResult]::new('--allow-dirty', '--allow-dirty', [CompletionResultType]::ParameterName, 'allow-dirty')
191191 [CompletionResult]::new('--allow-staged', '--allow-staged', [CompletionResultType]::ParameterName, 'allow-staged')
......@@ -207,7 +207,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
207207 }
208208 'x;fix' {
209209 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
210 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
210 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
211211 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
212212 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
213213 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -228,7 +228,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
228228 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
229229 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
230230 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
231 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
231 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
232232 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
233233 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
234234 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
......@@ -247,7 +247,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
247247 }
248248 'x;fmt' {
249249 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
250 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
250 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
251251 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
252252 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
253253 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -268,7 +268,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
268268 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
269269 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
270270 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
271 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
271 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
272272 [CompletionResult]::new('--check', '--check', [CompletionResultType]::ParameterName, 'check formatting instead of applying')
273273 [CompletionResult]::new('--all', '--all', [CompletionResultType]::ParameterName, 'apply to all appropriate files, not just those that have been modified')
274274 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
......@@ -289,7 +289,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
289289 }
290290 'x;doc' {
291291 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
292 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
292 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
293293 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
294294 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
295295 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -310,7 +310,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
310310 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
311311 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
312312 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
313 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
313 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
314314 [CompletionResult]::new('--open', '--open', [CompletionResultType]::ParameterName, 'open the docs in a browser')
315315 [CompletionResult]::new('--json', '--json', [CompletionResultType]::ParameterName, 'render the documentation in JSON format in addition to the usual HTML format')
316316 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
......@@ -337,7 +337,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
337337 [CompletionResult]::new('--pass', '--pass', [CompletionResultType]::ParameterName, 'force {check,build,run}-pass tests to this mode')
338338 [CompletionResult]::new('--run', '--run', [CompletionResultType]::ParameterName, 'whether to execute run-* tests')
339339 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
340 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
340 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
341341 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
342342 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
343343 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -358,7 +358,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
358358 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
359359 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
360360 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
361 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
361 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
362362 [CompletionResult]::new('--no-fail-fast', '--no-fail-fast', [CompletionResultType]::ParameterName, 'run all tests regardless of failure')
363363 [CompletionResult]::new('--no-doc', '--no-doc', [CompletionResultType]::ParameterName, 'do not run doc tests')
364364 [CompletionResult]::new('--doc', '--doc', [CompletionResultType]::ParameterName, 'only run doc tests')
......@@ -386,7 +386,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
386386 'x;miri' {
387387 [CompletionResult]::new('--test-args', '--test-args', [CompletionResultType]::ParameterName, 'extra arguments to be passed for the test tool being used (e.g. libtest, compiletest or rustdoc)')
388388 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
389 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
389 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
390390 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
391391 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
392392 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -407,7 +407,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
407407 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
408408 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
409409 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
410 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
410 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
411411 [CompletionResult]::new('--no-fail-fast', '--no-fail-fast', [CompletionResultType]::ParameterName, 'run all tests regardless of failure')
412412 [CompletionResult]::new('--no-doc', '--no-doc', [CompletionResultType]::ParameterName, 'do not run doc tests')
413413 [CompletionResult]::new('--doc', '--doc', [CompletionResultType]::ParameterName, 'only run doc tests')
......@@ -430,7 +430,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
430430 'x;bench' {
431431 [CompletionResult]::new('--test-args', '--test-args', [CompletionResultType]::ParameterName, 'test-args')
432432 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
433 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
433 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
434434 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
435435 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
436436 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -451,7 +451,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
451451 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
452452 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
453453 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
454 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
454 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
455455 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
456456 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
457457 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
......@@ -471,7 +471,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
471471 'x;clean' {
472472 [CompletionResult]::new('--stage', '--stage', [CompletionResultType]::ParameterName, 'Clean a specific stage without touching other artifacts. By default, every stage is cleaned if this option is not used')
473473 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
474 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
474 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
475475 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
476476 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
477477 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -491,7 +491,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
491491 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
492492 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
493493 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
494 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
494 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
495495 [CompletionResult]::new('--all', '--all', [CompletionResultType]::ParameterName, 'Clean the entire build directory (not used by default)')
496496 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
497497 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
......@@ -511,7 +511,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
511511 }
512512 'x;dist' {
513513 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
514 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
514 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
515515 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
516516 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
517517 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -532,7 +532,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
532532 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
533533 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
534534 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
535 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
535 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
536536 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
537537 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
538538 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
......@@ -551,7 +551,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
551551 }
552552 'x;install' {
553553 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
554 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
554 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
555555 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
556556 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
557557 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -572,7 +572,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
572572 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
573573 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
574574 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
575 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
575 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
576576 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
577577 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
578578 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
......@@ -592,7 +592,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
592592 'x;run' {
593593 [CompletionResult]::new('--args', '--args', [CompletionResultType]::ParameterName, 'arguments for the tool')
594594 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
595 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
595 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
596596 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
597597 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
598598 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -613,7 +613,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
613613 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
614614 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
615615 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
616 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
616 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
617617 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
618618 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
619619 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
......@@ -632,7 +632,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
632632 }
633633 'x;setup' {
634634 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
635 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
635 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
636636 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
637637 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
638638 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -653,7 +653,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
653653 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
654654 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
655655 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
656 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
656 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
657657 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
658658 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
659659 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
......@@ -672,7 +672,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
672672 }
673673 'x;suggest' {
674674 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
675 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
675 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
676676 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
677677 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
678678 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -693,7 +693,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
693693 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
694694 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
695695 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
696 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
696 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
697697 [CompletionResult]::new('--run', '--run', [CompletionResultType]::ParameterName, 'run suggested tests')
698698 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
699699 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
......@@ -714,7 +714,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
714714 'x;vendor' {
715715 [CompletionResult]::new('--sync', '--sync', [CompletionResultType]::ParameterName, 'Additional `Cargo.toml` to sync and vendor')
716716 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
717 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
717 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
718718 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
719719 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
720720 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -735,7 +735,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
735735 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
736736 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
737737 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
738 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
738 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
739739 [CompletionResult]::new('--versioned-dirs', '--versioned-dirs', [CompletionResultType]::ParameterName, 'Always include version in subdir name')
740740 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
741741 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
......@@ -755,7 +755,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
755755 }
756756 'x;perf' {
757757 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
758 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
758 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
759759 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
760760 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
761761 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -776,7 +776,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
776776 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
777777 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
778778 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
779 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
779 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
780780 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
781781 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
782782 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
......@@ -804,7 +804,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
804804 [CompletionResult]::new('--scenarios', '--scenarios', [CompletionResultType]::ParameterName, 'Select the scenarios that should be benchmarked')
805805 [CompletionResult]::new('--profiles', '--profiles', [CompletionResultType]::ParameterName, 'Select the profiles that should be benchmarked')
806806 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
807 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
807 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
808808 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
809809 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
810810 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -824,7 +824,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
824824 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
825825 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
826826 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
827 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
827 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
828828 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
829829 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
830830 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
......@@ -847,7 +847,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
847847 [CompletionResult]::new('--scenarios', '--scenarios', [CompletionResultType]::ParameterName, 'Select the scenarios that should be benchmarked')
848848 [CompletionResult]::new('--profiles', '--profiles', [CompletionResultType]::ParameterName, 'Select the profiles that should be benchmarked')
849849 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
850 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
850 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
851851 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
852852 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
853853 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -867,7 +867,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
867867 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
868868 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
869869 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
870 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
870 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
871871 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
872872 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
873873 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
......@@ -890,7 +890,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
890890 [CompletionResult]::new('--scenarios', '--scenarios', [CompletionResultType]::ParameterName, 'Select the scenarios that should be benchmarked')
891891 [CompletionResult]::new('--profiles', '--profiles', [CompletionResultType]::ParameterName, 'Select the profiles that should be benchmarked')
892892 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
893 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
893 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
894894 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
895895 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
896896 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -910,7 +910,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
910910 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
911911 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
912912 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
913 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
913 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
914914 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
915915 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
916916 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
......@@ -933,7 +933,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
933933 [CompletionResult]::new('--scenarios', '--scenarios', [CompletionResultType]::ParameterName, 'Select the scenarios that should be benchmarked')
934934 [CompletionResult]::new('--profiles', '--profiles', [CompletionResultType]::ParameterName, 'Select the profiles that should be benchmarked')
935935 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
936 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
936 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
937937 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
938938 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
939939 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -953,7 +953,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
953953 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
954954 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
955955 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
956 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
956 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
957957 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
958958 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
959959 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
......@@ -972,7 +972,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
972972 }
973973 'x;perf;compare' {
974974 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
975 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
975 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
976976 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
977977 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
978978 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -993,7 +993,7 @@ Register-ArgumentCompleter -Native -CommandName 'x' -ScriptBlock {
993993 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
994994 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
995995 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
996 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
996 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
997997 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
998998 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
999999 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
src/etc/completions/x.py.fish+46-46
......@@ -25,7 +25,7 @@ function __fish_x.py_using_subcommand
2525end
2626
2727complete -c x.py -n "__fish_x.py_needs_command" -l config -d 'TOML configuration file for build' -r -F
28complete -c x.py -n "__fish_x.py_needs_command" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
28complete -c x.py -n "__fish_x.py_needs_command" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
2929complete -c x.py -n "__fish_x.py_needs_command" -l build -d 'build target of the stage0 compiler' -r -f
3030complete -c x.py -n "__fish_x.py_needs_command" -l host -d 'host targets to build' -r -f
3131complete -c x.py -n "__fish_x.py_needs_command" -l target -d 'target targets to build' -r -f
......@@ -45,7 +45,7 @@ complete -c x.py -n "__fish_x.py_needs_command" -l rust-profile-generate -d 'gen
4545complete -c x.py -n "__fish_x.py_needs_command" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
4646complete -c x.py -n "__fish_x.py_needs_command" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
4747complete -c x.py -n "__fish_x.py_needs_command" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
48complete -c x.py -n "__fish_x.py_needs_command" -l set -d 'override options in config.toml' -r -f
48complete -c x.py -n "__fish_x.py_needs_command" -l set -d 'override options in bootstrap.toml' -r -f
4949complete -c x.py -n "__fish_x.py_needs_command" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
5050complete -c x.py -n "__fish_x.py_needs_command" -s i -l incremental -d 'use incremental compilation'
5151complete -c x.py -n "__fish_x.py_needs_command" -l include-default-paths -d 'include default paths in addition to the provided ones'
......@@ -75,7 +75,7 @@ complete -c x.py -n "__fish_x.py_needs_command" -a "suggest" -d 'Suggest a subse
7575complete -c x.py -n "__fish_x.py_needs_command" -a "vendor" -d 'Vendor dependencies'
7676complete -c x.py -n "__fish_x.py_needs_command" -a "perf" -d 'Perform profiling and benchmarking of the compiler using `rustc-perf`'
7777complete -c x.py -n "__fish_x.py_using_subcommand build" -l config -d 'TOML configuration file for build' -r -F
78complete -c x.py -n "__fish_x.py_using_subcommand build" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
78complete -c x.py -n "__fish_x.py_using_subcommand build" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
7979complete -c x.py -n "__fish_x.py_using_subcommand build" -l build -d 'build target of the stage0 compiler' -r -f
8080complete -c x.py -n "__fish_x.py_using_subcommand build" -l host -d 'host targets to build' -r -f
8181complete -c x.py -n "__fish_x.py_using_subcommand build" -l target -d 'target targets to build' -r -f
......@@ -95,7 +95,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand build" -l rust-profile-generat
9595complete -c x.py -n "__fish_x.py_using_subcommand build" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
9696complete -c x.py -n "__fish_x.py_using_subcommand build" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
9797complete -c x.py -n "__fish_x.py_using_subcommand build" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
98complete -c x.py -n "__fish_x.py_using_subcommand build" -l set -d 'override options in config.toml' -r -f
98complete -c x.py -n "__fish_x.py_using_subcommand build" -l set -d 'override options in bootstrap.toml' -r -f
9999complete -c x.py -n "__fish_x.py_using_subcommand build" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
100100complete -c x.py -n "__fish_x.py_using_subcommand build" -s i -l incremental -d 'use incremental compilation'
101101complete -c x.py -n "__fish_x.py_using_subcommand build" -l include-default-paths -d 'include default paths in addition to the provided ones'
......@@ -108,7 +108,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand build" -l enable-bolt-settings
108108complete -c x.py -n "__fish_x.py_using_subcommand build" -l skip-stage0-validation -d 'Skip stage0 compiler validation'
109109complete -c x.py -n "__fish_x.py_using_subcommand build" -s h -l help -d 'Print help (see more with \'--help\')'
110110complete -c x.py -n "__fish_x.py_using_subcommand check" -l config -d 'TOML configuration file for build' -r -F
111complete -c x.py -n "__fish_x.py_using_subcommand check" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
111complete -c x.py -n "__fish_x.py_using_subcommand check" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
112112complete -c x.py -n "__fish_x.py_using_subcommand check" -l build -d 'build target of the stage0 compiler' -r -f
113113complete -c x.py -n "__fish_x.py_using_subcommand check" -l host -d 'host targets to build' -r -f
114114complete -c x.py -n "__fish_x.py_using_subcommand check" -l target -d 'target targets to build' -r -f
......@@ -128,7 +128,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand check" -l rust-profile-generat
128128complete -c x.py -n "__fish_x.py_using_subcommand check" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
129129complete -c x.py -n "__fish_x.py_using_subcommand check" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
130130complete -c x.py -n "__fish_x.py_using_subcommand check" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
131complete -c x.py -n "__fish_x.py_using_subcommand check" -l set -d 'override options in config.toml' -r -f
131complete -c x.py -n "__fish_x.py_using_subcommand check" -l set -d 'override options in bootstrap.toml' -r -f
132132complete -c x.py -n "__fish_x.py_using_subcommand check" -l all-targets -d 'Check all targets'
133133complete -c x.py -n "__fish_x.py_using_subcommand check" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
134134complete -c x.py -n "__fish_x.py_using_subcommand check" -s i -l incremental -d 'use incremental compilation'
......@@ -146,7 +146,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand clippy" -s D -d 'clippy lints
146146complete -c x.py -n "__fish_x.py_using_subcommand clippy" -s W -d 'clippy lints to warn on' -r
147147complete -c x.py -n "__fish_x.py_using_subcommand clippy" -s F -d 'clippy lints to forbid' -r
148148complete -c x.py -n "__fish_x.py_using_subcommand clippy" -l config -d 'TOML configuration file for build' -r -F
149complete -c x.py -n "__fish_x.py_using_subcommand clippy" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
149complete -c x.py -n "__fish_x.py_using_subcommand clippy" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
150150complete -c x.py -n "__fish_x.py_using_subcommand clippy" -l build -d 'build target of the stage0 compiler' -r -f
151151complete -c x.py -n "__fish_x.py_using_subcommand clippy" -l host -d 'host targets to build' -r -f
152152complete -c x.py -n "__fish_x.py_using_subcommand clippy" -l target -d 'target targets to build' -r -f
......@@ -166,7 +166,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand clippy" -l rust-profile-genera
166166complete -c x.py -n "__fish_x.py_using_subcommand clippy" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
167167complete -c x.py -n "__fish_x.py_using_subcommand clippy" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
168168complete -c x.py -n "__fish_x.py_using_subcommand clippy" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
169complete -c x.py -n "__fish_x.py_using_subcommand clippy" -l set -d 'override options in config.toml' -r -f
169complete -c x.py -n "__fish_x.py_using_subcommand clippy" -l set -d 'override options in bootstrap.toml' -r -f
170170complete -c x.py -n "__fish_x.py_using_subcommand clippy" -l fix
171171complete -c x.py -n "__fish_x.py_using_subcommand clippy" -l allow-dirty
172172complete -c x.py -n "__fish_x.py_using_subcommand clippy" -l allow-staged
......@@ -182,7 +182,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand clippy" -l enable-bolt-setting
182182complete -c x.py -n "__fish_x.py_using_subcommand clippy" -l skip-stage0-validation -d 'Skip stage0 compiler validation'
183183complete -c x.py -n "__fish_x.py_using_subcommand clippy" -s h -l help -d 'Print help (see more with \'--help\')'
184184complete -c x.py -n "__fish_x.py_using_subcommand fix" -l config -d 'TOML configuration file for build' -r -F
185complete -c x.py -n "__fish_x.py_using_subcommand fix" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
185complete -c x.py -n "__fish_x.py_using_subcommand fix" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
186186complete -c x.py -n "__fish_x.py_using_subcommand fix" -l build -d 'build target of the stage0 compiler' -r -f
187187complete -c x.py -n "__fish_x.py_using_subcommand fix" -l host -d 'host targets to build' -r -f
188188complete -c x.py -n "__fish_x.py_using_subcommand fix" -l target -d 'target targets to build' -r -f
......@@ -202,7 +202,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand fix" -l rust-profile-generate
202202complete -c x.py -n "__fish_x.py_using_subcommand fix" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
203203complete -c x.py -n "__fish_x.py_using_subcommand fix" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
204204complete -c x.py -n "__fish_x.py_using_subcommand fix" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
205complete -c x.py -n "__fish_x.py_using_subcommand fix" -l set -d 'override options in config.toml' -r -f
205complete -c x.py -n "__fish_x.py_using_subcommand fix" -l set -d 'override options in bootstrap.toml' -r -f
206206complete -c x.py -n "__fish_x.py_using_subcommand fix" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
207207complete -c x.py -n "__fish_x.py_using_subcommand fix" -s i -l incremental -d 'use incremental compilation'
208208complete -c x.py -n "__fish_x.py_using_subcommand fix" -l include-default-paths -d 'include default paths in addition to the provided ones'
......@@ -215,7 +215,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand fix" -l enable-bolt-settings -
215215complete -c x.py -n "__fish_x.py_using_subcommand fix" -l skip-stage0-validation -d 'Skip stage0 compiler validation'
216216complete -c x.py -n "__fish_x.py_using_subcommand fix" -s h -l help -d 'Print help (see more with \'--help\')'
217217complete -c x.py -n "__fish_x.py_using_subcommand fmt" -l config -d 'TOML configuration file for build' -r -F
218complete -c x.py -n "__fish_x.py_using_subcommand fmt" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
218complete -c x.py -n "__fish_x.py_using_subcommand fmt" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
219219complete -c x.py -n "__fish_x.py_using_subcommand fmt" -l build -d 'build target of the stage0 compiler' -r -f
220220complete -c x.py -n "__fish_x.py_using_subcommand fmt" -l host -d 'host targets to build' -r -f
221221complete -c x.py -n "__fish_x.py_using_subcommand fmt" -l target -d 'target targets to build' -r -f
......@@ -235,7 +235,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand fmt" -l rust-profile-generate
235235complete -c x.py -n "__fish_x.py_using_subcommand fmt" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
236236complete -c x.py -n "__fish_x.py_using_subcommand fmt" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
237237complete -c x.py -n "__fish_x.py_using_subcommand fmt" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
238complete -c x.py -n "__fish_x.py_using_subcommand fmt" -l set -d 'override options in config.toml' -r -f
238complete -c x.py -n "__fish_x.py_using_subcommand fmt" -l set -d 'override options in bootstrap.toml' -r -f
239239complete -c x.py -n "__fish_x.py_using_subcommand fmt" -l check -d 'check formatting instead of applying'
240240complete -c x.py -n "__fish_x.py_using_subcommand fmt" -l all -d 'apply to all appropriate files, not just those that have been modified'
241241complete -c x.py -n "__fish_x.py_using_subcommand fmt" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
......@@ -250,7 +250,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand fmt" -l enable-bolt-settings -
250250complete -c x.py -n "__fish_x.py_using_subcommand fmt" -l skip-stage0-validation -d 'Skip stage0 compiler validation'
251251complete -c x.py -n "__fish_x.py_using_subcommand fmt" -s h -l help -d 'Print help (see more with \'--help\')'
252252complete -c x.py -n "__fish_x.py_using_subcommand doc" -l config -d 'TOML configuration file for build' -r -F
253complete -c x.py -n "__fish_x.py_using_subcommand doc" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
253complete -c x.py -n "__fish_x.py_using_subcommand doc" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
254254complete -c x.py -n "__fish_x.py_using_subcommand doc" -l build -d 'build target of the stage0 compiler' -r -f
255255complete -c x.py -n "__fish_x.py_using_subcommand doc" -l host -d 'host targets to build' -r -f
256256complete -c x.py -n "__fish_x.py_using_subcommand doc" -l target -d 'target targets to build' -r -f
......@@ -270,7 +270,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand doc" -l rust-profile-generate
270270complete -c x.py -n "__fish_x.py_using_subcommand doc" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
271271complete -c x.py -n "__fish_x.py_using_subcommand doc" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
272272complete -c x.py -n "__fish_x.py_using_subcommand doc" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
273complete -c x.py -n "__fish_x.py_using_subcommand doc" -l set -d 'override options in config.toml' -r -f
273complete -c x.py -n "__fish_x.py_using_subcommand doc" -l set -d 'override options in bootstrap.toml' -r -f
274274complete -c x.py -n "__fish_x.py_using_subcommand doc" -l open -d 'open the docs in a browser'
275275complete -c x.py -n "__fish_x.py_using_subcommand doc" -l json -d 'render the documentation in JSON format in addition to the usual HTML format'
276276complete -c x.py -n "__fish_x.py_using_subcommand doc" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
......@@ -291,7 +291,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand test" -l compare-mode -d 'mode
291291complete -c x.py -n "__fish_x.py_using_subcommand test" -l pass -d 'force {check,build,run}-pass tests to this mode' -r
292292complete -c x.py -n "__fish_x.py_using_subcommand test" -l run -d 'whether to execute run-* tests' -r
293293complete -c x.py -n "__fish_x.py_using_subcommand test" -l config -d 'TOML configuration file for build' -r -F
294complete -c x.py -n "__fish_x.py_using_subcommand test" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
294complete -c x.py -n "__fish_x.py_using_subcommand test" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
295295complete -c x.py -n "__fish_x.py_using_subcommand test" -l build -d 'build target of the stage0 compiler' -r -f
296296complete -c x.py -n "__fish_x.py_using_subcommand test" -l host -d 'host targets to build' -r -f
297297complete -c x.py -n "__fish_x.py_using_subcommand test" -l target -d 'target targets to build' -r -f
......@@ -311,7 +311,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand test" -l rust-profile-generate
311311complete -c x.py -n "__fish_x.py_using_subcommand test" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
312312complete -c x.py -n "__fish_x.py_using_subcommand test" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
313313complete -c x.py -n "__fish_x.py_using_subcommand test" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
314complete -c x.py -n "__fish_x.py_using_subcommand test" -l set -d 'override options in config.toml' -r -f
314complete -c x.py -n "__fish_x.py_using_subcommand test" -l set -d 'override options in bootstrap.toml' -r -f
315315complete -c x.py -n "__fish_x.py_using_subcommand test" -l no-fail-fast -d 'run all tests regardless of failure'
316316complete -c x.py -n "__fish_x.py_using_subcommand test" -l no-doc -d 'do not run doc tests'
317317complete -c x.py -n "__fish_x.py_using_subcommand test" -l doc -d 'only run doc tests'
......@@ -333,7 +333,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand test" -l skip-stage0-validatio
333333complete -c x.py -n "__fish_x.py_using_subcommand test" -s h -l help -d 'Print help (see more with \'--help\')'
334334complete -c x.py -n "__fish_x.py_using_subcommand miri" -l test-args -d 'extra arguments to be passed for the test tool being used (e.g. libtest, compiletest or rustdoc)' -r
335335complete -c x.py -n "__fish_x.py_using_subcommand miri" -l config -d 'TOML configuration file for build' -r -F
336complete -c x.py -n "__fish_x.py_using_subcommand miri" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
336complete -c x.py -n "__fish_x.py_using_subcommand miri" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
337337complete -c x.py -n "__fish_x.py_using_subcommand miri" -l build -d 'build target of the stage0 compiler' -r -f
338338complete -c x.py -n "__fish_x.py_using_subcommand miri" -l host -d 'host targets to build' -r -f
339339complete -c x.py -n "__fish_x.py_using_subcommand miri" -l target -d 'target targets to build' -r -f
......@@ -353,7 +353,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand miri" -l rust-profile-generate
353353complete -c x.py -n "__fish_x.py_using_subcommand miri" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
354354complete -c x.py -n "__fish_x.py_using_subcommand miri" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
355355complete -c x.py -n "__fish_x.py_using_subcommand miri" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
356complete -c x.py -n "__fish_x.py_using_subcommand miri" -l set -d 'override options in config.toml' -r -f
356complete -c x.py -n "__fish_x.py_using_subcommand miri" -l set -d 'override options in bootstrap.toml' -r -f
357357complete -c x.py -n "__fish_x.py_using_subcommand miri" -l no-fail-fast -d 'run all tests regardless of failure'
358358complete -c x.py -n "__fish_x.py_using_subcommand miri" -l no-doc -d 'do not run doc tests'
359359complete -c x.py -n "__fish_x.py_using_subcommand miri" -l doc -d 'only run doc tests'
......@@ -370,7 +370,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand miri" -l skip-stage0-validatio
370370complete -c x.py -n "__fish_x.py_using_subcommand miri" -s h -l help -d 'Print help (see more with \'--help\')'
371371complete -c x.py -n "__fish_x.py_using_subcommand bench" -l test-args -r
372372complete -c x.py -n "__fish_x.py_using_subcommand bench" -l config -d 'TOML configuration file for build' -r -F
373complete -c x.py -n "__fish_x.py_using_subcommand bench" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
373complete -c x.py -n "__fish_x.py_using_subcommand bench" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
374374complete -c x.py -n "__fish_x.py_using_subcommand bench" -l build -d 'build target of the stage0 compiler' -r -f
375375complete -c x.py -n "__fish_x.py_using_subcommand bench" -l host -d 'host targets to build' -r -f
376376complete -c x.py -n "__fish_x.py_using_subcommand bench" -l target -d 'target targets to build' -r -f
......@@ -390,7 +390,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand bench" -l rust-profile-generat
390390complete -c x.py -n "__fish_x.py_using_subcommand bench" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
391391complete -c x.py -n "__fish_x.py_using_subcommand bench" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
392392complete -c x.py -n "__fish_x.py_using_subcommand bench" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
393complete -c x.py -n "__fish_x.py_using_subcommand bench" -l set -d 'override options in config.toml' -r -f
393complete -c x.py -n "__fish_x.py_using_subcommand bench" -l set -d 'override options in bootstrap.toml' -r -f
394394complete -c x.py -n "__fish_x.py_using_subcommand bench" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
395395complete -c x.py -n "__fish_x.py_using_subcommand bench" -s i -l incremental -d 'use incremental compilation'
396396complete -c x.py -n "__fish_x.py_using_subcommand bench" -l include-default-paths -d 'include default paths in addition to the provided ones'
......@@ -404,7 +404,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand bench" -l skip-stage0-validati
404404complete -c x.py -n "__fish_x.py_using_subcommand bench" -s h -l help -d 'Print help (see more with \'--help\')'
405405complete -c x.py -n "__fish_x.py_using_subcommand clean" -l stage -d 'Clean a specific stage without touching other artifacts. By default, every stage is cleaned if this option is not used' -r
406406complete -c x.py -n "__fish_x.py_using_subcommand clean" -l config -d 'TOML configuration file for build' -r -F
407complete -c x.py -n "__fish_x.py_using_subcommand clean" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
407complete -c x.py -n "__fish_x.py_using_subcommand clean" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
408408complete -c x.py -n "__fish_x.py_using_subcommand clean" -l build -d 'build target of the stage0 compiler' -r -f
409409complete -c x.py -n "__fish_x.py_using_subcommand clean" -l host -d 'host targets to build' -r -f
410410complete -c x.py -n "__fish_x.py_using_subcommand clean" -l target -d 'target targets to build' -r -f
......@@ -423,7 +423,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand clean" -l rust-profile-generat
423423complete -c x.py -n "__fish_x.py_using_subcommand clean" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
424424complete -c x.py -n "__fish_x.py_using_subcommand clean" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
425425complete -c x.py -n "__fish_x.py_using_subcommand clean" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
426complete -c x.py -n "__fish_x.py_using_subcommand clean" -l set -d 'override options in config.toml' -r -f
426complete -c x.py -n "__fish_x.py_using_subcommand clean" -l set -d 'override options in bootstrap.toml' -r -f
427427complete -c x.py -n "__fish_x.py_using_subcommand clean" -l all -d 'Clean the entire build directory (not used by default)'
428428complete -c x.py -n "__fish_x.py_using_subcommand clean" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
429429complete -c x.py -n "__fish_x.py_using_subcommand clean" -s i -l incremental -d 'use incremental compilation'
......@@ -437,7 +437,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand clean" -l enable-bolt-settings
437437complete -c x.py -n "__fish_x.py_using_subcommand clean" -l skip-stage0-validation -d 'Skip stage0 compiler validation'
438438complete -c x.py -n "__fish_x.py_using_subcommand clean" -s h -l help -d 'Print help (see more with \'--help\')'
439439complete -c x.py -n "__fish_x.py_using_subcommand dist" -l config -d 'TOML configuration file for build' -r -F
440complete -c x.py -n "__fish_x.py_using_subcommand dist" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
440complete -c x.py -n "__fish_x.py_using_subcommand dist" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
441441complete -c x.py -n "__fish_x.py_using_subcommand dist" -l build -d 'build target of the stage0 compiler' -r -f
442442complete -c x.py -n "__fish_x.py_using_subcommand dist" -l host -d 'host targets to build' -r -f
443443complete -c x.py -n "__fish_x.py_using_subcommand dist" -l target -d 'target targets to build' -r -f
......@@ -457,7 +457,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand dist" -l rust-profile-generate
457457complete -c x.py -n "__fish_x.py_using_subcommand dist" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
458458complete -c x.py -n "__fish_x.py_using_subcommand dist" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
459459complete -c x.py -n "__fish_x.py_using_subcommand dist" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
460complete -c x.py -n "__fish_x.py_using_subcommand dist" -l set -d 'override options in config.toml' -r -f
460complete -c x.py -n "__fish_x.py_using_subcommand dist" -l set -d 'override options in bootstrap.toml' -r -f
461461complete -c x.py -n "__fish_x.py_using_subcommand dist" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
462462complete -c x.py -n "__fish_x.py_using_subcommand dist" -s i -l incremental -d 'use incremental compilation'
463463complete -c x.py -n "__fish_x.py_using_subcommand dist" -l include-default-paths -d 'include default paths in addition to the provided ones'
......@@ -470,7 +470,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand dist" -l enable-bolt-settings
470470complete -c x.py -n "__fish_x.py_using_subcommand dist" -l skip-stage0-validation -d 'Skip stage0 compiler validation'
471471complete -c x.py -n "__fish_x.py_using_subcommand dist" -s h -l help -d 'Print help (see more with \'--help\')'
472472complete -c x.py -n "__fish_x.py_using_subcommand install" -l config -d 'TOML configuration file for build' -r -F
473complete -c x.py -n "__fish_x.py_using_subcommand install" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
473complete -c x.py -n "__fish_x.py_using_subcommand install" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
474474complete -c x.py -n "__fish_x.py_using_subcommand install" -l build -d 'build target of the stage0 compiler' -r -f
475475complete -c x.py -n "__fish_x.py_using_subcommand install" -l host -d 'host targets to build' -r -f
476476complete -c x.py -n "__fish_x.py_using_subcommand install" -l target -d 'target targets to build' -r -f
......@@ -490,7 +490,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand install" -l rust-profile-gener
490490complete -c x.py -n "__fish_x.py_using_subcommand install" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
491491complete -c x.py -n "__fish_x.py_using_subcommand install" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
492492complete -c x.py -n "__fish_x.py_using_subcommand install" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
493complete -c x.py -n "__fish_x.py_using_subcommand install" -l set -d 'override options in config.toml' -r -f
493complete -c x.py -n "__fish_x.py_using_subcommand install" -l set -d 'override options in bootstrap.toml' -r -f
494494complete -c x.py -n "__fish_x.py_using_subcommand install" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
495495complete -c x.py -n "__fish_x.py_using_subcommand install" -s i -l incremental -d 'use incremental compilation'
496496complete -c x.py -n "__fish_x.py_using_subcommand install" -l include-default-paths -d 'include default paths in addition to the provided ones'
......@@ -504,7 +504,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand install" -l skip-stage0-valida
504504complete -c x.py -n "__fish_x.py_using_subcommand install" -s h -l help -d 'Print help (see more with \'--help\')'
505505complete -c x.py -n "__fish_x.py_using_subcommand run" -l args -d 'arguments for the tool' -r
506506complete -c x.py -n "__fish_x.py_using_subcommand run" -l config -d 'TOML configuration file for build' -r -F
507complete -c x.py -n "__fish_x.py_using_subcommand run" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
507complete -c x.py -n "__fish_x.py_using_subcommand run" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
508508complete -c x.py -n "__fish_x.py_using_subcommand run" -l build -d 'build target of the stage0 compiler' -r -f
509509complete -c x.py -n "__fish_x.py_using_subcommand run" -l host -d 'host targets to build' -r -f
510510complete -c x.py -n "__fish_x.py_using_subcommand run" -l target -d 'target targets to build' -r -f
......@@ -524,7 +524,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand run" -l rust-profile-generate
524524complete -c x.py -n "__fish_x.py_using_subcommand run" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
525525complete -c x.py -n "__fish_x.py_using_subcommand run" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
526526complete -c x.py -n "__fish_x.py_using_subcommand run" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
527complete -c x.py -n "__fish_x.py_using_subcommand run" -l set -d 'override options in config.toml' -r -f
527complete -c x.py -n "__fish_x.py_using_subcommand run" -l set -d 'override options in bootstrap.toml' -r -f
528528complete -c x.py -n "__fish_x.py_using_subcommand run" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
529529complete -c x.py -n "__fish_x.py_using_subcommand run" -s i -l incremental -d 'use incremental compilation'
530530complete -c x.py -n "__fish_x.py_using_subcommand run" -l include-default-paths -d 'include default paths in addition to the provided ones'
......@@ -537,7 +537,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand run" -l enable-bolt-settings -
537537complete -c x.py -n "__fish_x.py_using_subcommand run" -l skip-stage0-validation -d 'Skip stage0 compiler validation'
538538complete -c x.py -n "__fish_x.py_using_subcommand run" -s h -l help -d 'Print help (see more with \'--help\')'
539539complete -c x.py -n "__fish_x.py_using_subcommand setup" -l config -d 'TOML configuration file for build' -r -F
540complete -c x.py -n "__fish_x.py_using_subcommand setup" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
540complete -c x.py -n "__fish_x.py_using_subcommand setup" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
541541complete -c x.py -n "__fish_x.py_using_subcommand setup" -l build -d 'build target of the stage0 compiler' -r -f
542542complete -c x.py -n "__fish_x.py_using_subcommand setup" -l host -d 'host targets to build' -r -f
543543complete -c x.py -n "__fish_x.py_using_subcommand setup" -l target -d 'target targets to build' -r -f
......@@ -557,7 +557,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand setup" -l rust-profile-generat
557557complete -c x.py -n "__fish_x.py_using_subcommand setup" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
558558complete -c x.py -n "__fish_x.py_using_subcommand setup" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
559559complete -c x.py -n "__fish_x.py_using_subcommand setup" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
560complete -c x.py -n "__fish_x.py_using_subcommand setup" -l set -d 'override options in config.toml' -r -f
560complete -c x.py -n "__fish_x.py_using_subcommand setup" -l set -d 'override options in bootstrap.toml' -r -f
561561complete -c x.py -n "__fish_x.py_using_subcommand setup" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
562562complete -c x.py -n "__fish_x.py_using_subcommand setup" -s i -l incremental -d 'use incremental compilation'
563563complete -c x.py -n "__fish_x.py_using_subcommand setup" -l include-default-paths -d 'include default paths in addition to the provided ones'
......@@ -570,7 +570,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand setup" -l enable-bolt-settings
570570complete -c x.py -n "__fish_x.py_using_subcommand setup" -l skip-stage0-validation -d 'Skip stage0 compiler validation'
571571complete -c x.py -n "__fish_x.py_using_subcommand setup" -s h -l help -d 'Print help (see more with \'--help\')'
572572complete -c x.py -n "__fish_x.py_using_subcommand suggest" -l config -d 'TOML configuration file for build' -r -F
573complete -c x.py -n "__fish_x.py_using_subcommand suggest" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
573complete -c x.py -n "__fish_x.py_using_subcommand suggest" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
574574complete -c x.py -n "__fish_x.py_using_subcommand suggest" -l build -d 'build target of the stage0 compiler' -r -f
575575complete -c x.py -n "__fish_x.py_using_subcommand suggest" -l host -d 'host targets to build' -r -f
576576complete -c x.py -n "__fish_x.py_using_subcommand suggest" -l target -d 'target targets to build' -r -f
......@@ -590,7 +590,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand suggest" -l rust-profile-gener
590590complete -c x.py -n "__fish_x.py_using_subcommand suggest" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
591591complete -c x.py -n "__fish_x.py_using_subcommand suggest" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
592592complete -c x.py -n "__fish_x.py_using_subcommand suggest" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
593complete -c x.py -n "__fish_x.py_using_subcommand suggest" -l set -d 'override options in config.toml' -r -f
593complete -c x.py -n "__fish_x.py_using_subcommand suggest" -l set -d 'override options in bootstrap.toml' -r -f
594594complete -c x.py -n "__fish_x.py_using_subcommand suggest" -l run -d 'run suggested tests'
595595complete -c x.py -n "__fish_x.py_using_subcommand suggest" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
596596complete -c x.py -n "__fish_x.py_using_subcommand suggest" -s i -l incremental -d 'use incremental compilation'
......@@ -605,7 +605,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand suggest" -l skip-stage0-valida
605605complete -c x.py -n "__fish_x.py_using_subcommand suggest" -s h -l help -d 'Print help (see more with \'--help\')'
606606complete -c x.py -n "__fish_x.py_using_subcommand vendor" -l sync -d 'Additional `Cargo.toml` to sync and vendor' -r -F
607607complete -c x.py -n "__fish_x.py_using_subcommand vendor" -l config -d 'TOML configuration file for build' -r -F
608complete -c x.py -n "__fish_x.py_using_subcommand vendor" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
608complete -c x.py -n "__fish_x.py_using_subcommand vendor" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
609609complete -c x.py -n "__fish_x.py_using_subcommand vendor" -l build -d 'build target of the stage0 compiler' -r -f
610610complete -c x.py -n "__fish_x.py_using_subcommand vendor" -l host -d 'host targets to build' -r -f
611611complete -c x.py -n "__fish_x.py_using_subcommand vendor" -l target -d 'target targets to build' -r -f
......@@ -625,7 +625,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand vendor" -l rust-profile-genera
625625complete -c x.py -n "__fish_x.py_using_subcommand vendor" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
626626complete -c x.py -n "__fish_x.py_using_subcommand vendor" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
627627complete -c x.py -n "__fish_x.py_using_subcommand vendor" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
628complete -c x.py -n "__fish_x.py_using_subcommand vendor" -l set -d 'override options in config.toml' -r -f
628complete -c x.py -n "__fish_x.py_using_subcommand vendor" -l set -d 'override options in bootstrap.toml' -r -f
629629complete -c x.py -n "__fish_x.py_using_subcommand vendor" -l versioned-dirs -d 'Always include version in subdir name'
630630complete -c x.py -n "__fish_x.py_using_subcommand vendor" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
631631complete -c x.py -n "__fish_x.py_using_subcommand vendor" -s i -l incremental -d 'use incremental compilation'
......@@ -639,7 +639,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand vendor" -l enable-bolt-setting
639639complete -c x.py -n "__fish_x.py_using_subcommand vendor" -l skip-stage0-validation -d 'Skip stage0 compiler validation'
640640complete -c x.py -n "__fish_x.py_using_subcommand vendor" -s h -l help -d 'Print help (see more with \'--help\')'
641641complete -c x.py -n "__fish_x.py_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -l config -d 'TOML configuration file for build' -r -F
642complete -c x.py -n "__fish_x.py_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
642complete -c x.py -n "__fish_x.py_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
643643complete -c x.py -n "__fish_x.py_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -l build -d 'build target of the stage0 compiler' -r -f
644644complete -c x.py -n "__fish_x.py_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -l host -d 'host targets to build' -r -f
645645complete -c x.py -n "__fish_x.py_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -l target -d 'target targets to build' -r -f
......@@ -659,7 +659,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand perf; and not __fish_seen_subc
659659complete -c x.py -n "__fish_x.py_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
660660complete -c x.py -n "__fish_x.py_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
661661complete -c x.py -n "__fish_x.py_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
662complete -c x.py -n "__fish_x.py_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -l set -d 'override options in config.toml' -r -f
662complete -c x.py -n "__fish_x.py_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -l set -d 'override options in bootstrap.toml' -r -f
663663complete -c x.py -n "__fish_x.py_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
664664complete -c x.py -n "__fish_x.py_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -s i -l incremental -d 'use incremental compilation'
665665complete -c x.py -n "__fish_x.py_using_subcommand perf; and not __fish_seen_subcommand_from eprintln samply cachegrind benchmark compare" -l include-default-paths -d 'include default paths in addition to the provided ones'
......@@ -681,7 +681,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcomma
681681complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l scenarios -d 'Select the scenarios that should be benchmarked' -r -f -a "{Full\t'',IncrFull\t'',IncrUnchanged\t'',IncrPatched\t''}"
682682complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l profiles -d 'Select the profiles that should be benchmarked' -r -f -a "{Check\t'',Debug\t'',Doc\t'',Opt\t'',Clippy\t''}"
683683complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l config -d 'TOML configuration file for build' -r -F
684complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
684complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
685685complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l build -d 'build target of the stage0 compiler' -r -f
686686complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l host -d 'host targets to build' -r -f
687687complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l target -d 'target targets to build' -r -f
......@@ -700,7 +700,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcomma
700700complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
701701complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
702702complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
703complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l set -d 'override options in config.toml' -r -f
703complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l set -d 'override options in bootstrap.toml' -r -f
704704complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
705705complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -s i -l incremental -d 'use incremental compilation'
706706complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from eprintln" -l include-default-paths -d 'include default paths in addition to the provided ones'
......@@ -717,7 +717,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcomma
717717complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from samply" -l scenarios -d 'Select the scenarios that should be benchmarked' -r -f -a "{Full\t'',IncrFull\t'',IncrUnchanged\t'',IncrPatched\t''}"
718718complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from samply" -l profiles -d 'Select the profiles that should be benchmarked' -r -f -a "{Check\t'',Debug\t'',Doc\t'',Opt\t'',Clippy\t''}"
719719complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from samply" -l config -d 'TOML configuration file for build' -r -F
720complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from samply" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
720complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from samply" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
721721complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from samply" -l build -d 'build target of the stage0 compiler' -r -f
722722complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from samply" -l host -d 'host targets to build' -r -f
723723complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from samply" -l target -d 'target targets to build' -r -f
......@@ -736,7 +736,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcomma
736736complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from samply" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
737737complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from samply" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
738738complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from samply" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
739complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from samply" -l set -d 'override options in config.toml' -r -f
739complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from samply" -l set -d 'override options in bootstrap.toml' -r -f
740740complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from samply" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
741741complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from samply" -s i -l incremental -d 'use incremental compilation'
742742complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from samply" -l include-default-paths -d 'include default paths in addition to the provided ones'
......@@ -753,7 +753,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcomma
753753complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l scenarios -d 'Select the scenarios that should be benchmarked' -r -f -a "{Full\t'',IncrFull\t'',IncrUnchanged\t'',IncrPatched\t''}"
754754complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l profiles -d 'Select the profiles that should be benchmarked' -r -f -a "{Check\t'',Debug\t'',Doc\t'',Opt\t'',Clippy\t''}"
755755complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l config -d 'TOML configuration file for build' -r -F
756complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
756complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
757757complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l build -d 'build target of the stage0 compiler' -r -f
758758complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l host -d 'host targets to build' -r -f
759759complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l target -d 'target targets to build' -r -f
......@@ -772,7 +772,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcomma
772772complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
773773complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
774774complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
775complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l set -d 'override options in config.toml' -r -f
775complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l set -d 'override options in bootstrap.toml' -r -f
776776complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
777777complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -s i -l incremental -d 'use incremental compilation'
778778complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from cachegrind" -l include-default-paths -d 'include default paths in addition to the provided ones'
......@@ -789,7 +789,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcomma
789789complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l scenarios -d 'Select the scenarios that should be benchmarked' -r -f -a "{Full\t'',IncrFull\t'',IncrUnchanged\t'',IncrPatched\t''}"
790790complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l profiles -d 'Select the profiles that should be benchmarked' -r -f -a "{Check\t'',Debug\t'',Doc\t'',Opt\t'',Clippy\t''}"
791791complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l config -d 'TOML configuration file for build' -r -F
792complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
792complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
793793complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l build -d 'build target of the stage0 compiler' -r -f
794794complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l host -d 'host targets to build' -r -f
795795complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l target -d 'target targets to build' -r -f
......@@ -808,7 +808,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcomma
808808complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
809809complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
810810complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
811complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l set -d 'override options in config.toml' -r -f
811complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l set -d 'override options in bootstrap.toml' -r -f
812812complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
813813complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -s i -l incremental -d 'use incremental compilation'
814814complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l include-default-paths -d 'include default paths in addition to the provided ones'
......@@ -821,7 +821,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcomma
821821complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -l skip-stage0-validation -d 'Skip stage0 compiler validation'
822822complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from benchmark" -s h -l help -d 'Print help (see more with \'--help\')'
823823complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from compare" -l config -d 'TOML configuration file for build' -r -F
824complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from compare" -l build-dir -d 'Build directory, overrides `build.build-dir` in `config.toml`' -r -f -a "(__fish_complete_directories)"
824complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from compare" -l build-dir -d 'Build directory, overrides `build.build-dir` in `bootstrap.toml`' -r -f -a "(__fish_complete_directories)"
825825complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from compare" -l build -d 'build target of the stage0 compiler' -r -f
826826complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from compare" -l host -d 'host targets to build' -r -f
827827complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from compare" -l target -d 'target targets to build' -r -f
......@@ -841,7 +841,7 @@ complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcomma
841841complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from compare" -l rust-profile-use -d 'use PGO profile for rustc build' -r -F
842842complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from compare" -l llvm-profile-use -d 'use PGO profile for LLVM build' -r -F
843843complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from compare" -l reproducible-artifact -d 'Additional reproducible artifacts that should be added to the reproducible artifacts archive' -r
844complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from compare" -l set -d 'override options in config.toml' -r -f
844complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from compare" -l set -d 'override options in bootstrap.toml' -r -f
845845complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from compare" -s v -l verbose -d 'use verbose output (-vv for very verbose)'
846846complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from compare" -s i -l incremental -d 'use incremental compilation'
847847complete -c x.py -n "__fish_x.py_using_subcommand perf; and __fish_seen_subcommand_from compare" -l include-default-paths -d 'include default paths in addition to the provided ones'
src/etc/completions/x.py.ps1+46-46
......@@ -22,7 +22,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
2222 $completions = @(switch ($command) {
2323 'x.py' {
2424 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
25 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
25 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
2626 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
2727 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
2828 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -43,7 +43,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
4343 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
4444 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
4545 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
46 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
46 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
4747 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
4848 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
4949 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
......@@ -79,7 +79,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
7979 }
8080 'x.py;build' {
8181 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
82 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
82 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
8383 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
8484 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
8585 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -100,7 +100,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
100100 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
101101 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
102102 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
103 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
103 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
104104 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
105105 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
106106 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
......@@ -119,7 +119,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
119119 }
120120 'x.py;check' {
121121 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
122 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
122 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
123123 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
124124 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
125125 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -140,7 +140,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
140140 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
141141 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
142142 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
143 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
143 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
144144 [CompletionResult]::new('--all-targets', '--all-targets', [CompletionResultType]::ParameterName, 'Check all targets')
145145 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
146146 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
......@@ -164,7 +164,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
164164 [CompletionResult]::new('-W', '-W ', [CompletionResultType]::ParameterName, 'clippy lints to warn on')
165165 [CompletionResult]::new('-F', '-F ', [CompletionResultType]::ParameterName, 'clippy lints to forbid')
166166 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
167 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
167 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
168168 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
169169 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
170170 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -185,7 +185,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
185185 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
186186 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
187187 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
188 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
188 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
189189 [CompletionResult]::new('--fix', '--fix', [CompletionResultType]::ParameterName, 'fix')
190190 [CompletionResult]::new('--allow-dirty', '--allow-dirty', [CompletionResultType]::ParameterName, 'allow-dirty')
191191 [CompletionResult]::new('--allow-staged', '--allow-staged', [CompletionResultType]::ParameterName, 'allow-staged')
......@@ -207,7 +207,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
207207 }
208208 'x.py;fix' {
209209 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
210 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
210 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
211211 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
212212 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
213213 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -228,7 +228,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
228228 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
229229 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
230230 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
231 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
231 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
232232 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
233233 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
234234 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
......@@ -247,7 +247,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
247247 }
248248 'x.py;fmt' {
249249 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
250 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
250 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
251251 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
252252 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
253253 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -268,7 +268,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
268268 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
269269 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
270270 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
271 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
271 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
272272 [CompletionResult]::new('--check', '--check', [CompletionResultType]::ParameterName, 'check formatting instead of applying')
273273 [CompletionResult]::new('--all', '--all', [CompletionResultType]::ParameterName, 'apply to all appropriate files, not just those that have been modified')
274274 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
......@@ -289,7 +289,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
289289 }
290290 'x.py;doc' {
291291 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
292 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
292 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
293293 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
294294 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
295295 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -310,7 +310,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
310310 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
311311 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
312312 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
313 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
313 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
314314 [CompletionResult]::new('--open', '--open', [CompletionResultType]::ParameterName, 'open the docs in a browser')
315315 [CompletionResult]::new('--json', '--json', [CompletionResultType]::ParameterName, 'render the documentation in JSON format in addition to the usual HTML format')
316316 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
......@@ -337,7 +337,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
337337 [CompletionResult]::new('--pass', '--pass', [CompletionResultType]::ParameterName, 'force {check,build,run}-pass tests to this mode')
338338 [CompletionResult]::new('--run', '--run', [CompletionResultType]::ParameterName, 'whether to execute run-* tests')
339339 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
340 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
340 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
341341 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
342342 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
343343 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -358,7 +358,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
358358 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
359359 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
360360 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
361 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
361 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
362362 [CompletionResult]::new('--no-fail-fast', '--no-fail-fast', [CompletionResultType]::ParameterName, 'run all tests regardless of failure')
363363 [CompletionResult]::new('--no-doc', '--no-doc', [CompletionResultType]::ParameterName, 'do not run doc tests')
364364 [CompletionResult]::new('--doc', '--doc', [CompletionResultType]::ParameterName, 'only run doc tests')
......@@ -386,7 +386,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
386386 'x.py;miri' {
387387 [CompletionResult]::new('--test-args', '--test-args', [CompletionResultType]::ParameterName, 'extra arguments to be passed for the test tool being used (e.g. libtest, compiletest or rustdoc)')
388388 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
389 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
389 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
390390 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
391391 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
392392 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -407,7 +407,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
407407 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
408408 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
409409 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
410 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
410 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
411411 [CompletionResult]::new('--no-fail-fast', '--no-fail-fast', [CompletionResultType]::ParameterName, 'run all tests regardless of failure')
412412 [CompletionResult]::new('--no-doc', '--no-doc', [CompletionResultType]::ParameterName, 'do not run doc tests')
413413 [CompletionResult]::new('--doc', '--doc', [CompletionResultType]::ParameterName, 'only run doc tests')
......@@ -430,7 +430,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
430430 'x.py;bench' {
431431 [CompletionResult]::new('--test-args', '--test-args', [CompletionResultType]::ParameterName, 'test-args')
432432 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
433 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
433 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
434434 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
435435 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
436436 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -451,7 +451,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
451451 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
452452 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
453453 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
454 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
454 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
455455 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
456456 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
457457 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
......@@ -471,7 +471,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
471471 'x.py;clean' {
472472 [CompletionResult]::new('--stage', '--stage', [CompletionResultType]::ParameterName, 'Clean a specific stage without touching other artifacts. By default, every stage is cleaned if this option is not used')
473473 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
474 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
474 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
475475 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
476476 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
477477 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -491,7 +491,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
491491 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
492492 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
493493 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
494 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
494 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
495495 [CompletionResult]::new('--all', '--all', [CompletionResultType]::ParameterName, 'Clean the entire build directory (not used by default)')
496496 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
497497 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
......@@ -511,7 +511,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
511511 }
512512 'x.py;dist' {
513513 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
514 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
514 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
515515 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
516516 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
517517 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -532,7 +532,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
532532 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
533533 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
534534 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
535 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
535 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
536536 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
537537 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
538538 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
......@@ -551,7 +551,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
551551 }
552552 'x.py;install' {
553553 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
554 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
554 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
555555 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
556556 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
557557 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -572,7 +572,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
572572 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
573573 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
574574 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
575 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
575 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
576576 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
577577 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
578578 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
......@@ -592,7 +592,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
592592 'x.py;run' {
593593 [CompletionResult]::new('--args', '--args', [CompletionResultType]::ParameterName, 'arguments for the tool')
594594 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
595 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
595 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
596596 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
597597 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
598598 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -613,7 +613,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
613613 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
614614 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
615615 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
616 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
616 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
617617 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
618618 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
619619 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
......@@ -632,7 +632,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
632632 }
633633 'x.py;setup' {
634634 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
635 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
635 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
636636 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
637637 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
638638 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -653,7 +653,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
653653 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
654654 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
655655 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
656 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
656 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
657657 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
658658 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
659659 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
......@@ -672,7 +672,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
672672 }
673673 'x.py;suggest' {
674674 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
675 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
675 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
676676 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
677677 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
678678 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -693,7 +693,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
693693 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
694694 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
695695 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
696 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
696 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
697697 [CompletionResult]::new('--run', '--run', [CompletionResultType]::ParameterName, 'run suggested tests')
698698 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
699699 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
......@@ -714,7 +714,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
714714 'x.py;vendor' {
715715 [CompletionResult]::new('--sync', '--sync', [CompletionResultType]::ParameterName, 'Additional `Cargo.toml` to sync and vendor')
716716 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
717 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
717 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
718718 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
719719 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
720720 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -735,7 +735,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
735735 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
736736 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
737737 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
738 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
738 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
739739 [CompletionResult]::new('--versioned-dirs', '--versioned-dirs', [CompletionResultType]::ParameterName, 'Always include version in subdir name')
740740 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
741741 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
......@@ -755,7 +755,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
755755 }
756756 'x.py;perf' {
757757 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
758 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
758 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
759759 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
760760 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
761761 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -776,7 +776,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
776776 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
777777 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
778778 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
779 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
779 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
780780 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
781781 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
782782 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
......@@ -804,7 +804,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
804804 [CompletionResult]::new('--scenarios', '--scenarios', [CompletionResultType]::ParameterName, 'Select the scenarios that should be benchmarked')
805805 [CompletionResult]::new('--profiles', '--profiles', [CompletionResultType]::ParameterName, 'Select the profiles that should be benchmarked')
806806 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
807 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
807 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
808808 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
809809 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
810810 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -824,7 +824,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
824824 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
825825 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
826826 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
827 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
827 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
828828 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
829829 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
830830 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
......@@ -847,7 +847,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
847847 [CompletionResult]::new('--scenarios', '--scenarios', [CompletionResultType]::ParameterName, 'Select the scenarios that should be benchmarked')
848848 [CompletionResult]::new('--profiles', '--profiles', [CompletionResultType]::ParameterName, 'Select the profiles that should be benchmarked')
849849 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
850 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
850 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
851851 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
852852 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
853853 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -867,7 +867,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
867867 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
868868 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
869869 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
870 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
870 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
871871 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
872872 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
873873 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
......@@ -890,7 +890,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
890890 [CompletionResult]::new('--scenarios', '--scenarios', [CompletionResultType]::ParameterName, 'Select the scenarios that should be benchmarked')
891891 [CompletionResult]::new('--profiles', '--profiles', [CompletionResultType]::ParameterName, 'Select the profiles that should be benchmarked')
892892 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
893 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
893 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
894894 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
895895 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
896896 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -910,7 +910,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
910910 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
911911 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
912912 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
913 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
913 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
914914 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
915915 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
916916 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
......@@ -933,7 +933,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
933933 [CompletionResult]::new('--scenarios', '--scenarios', [CompletionResultType]::ParameterName, 'Select the scenarios that should be benchmarked')
934934 [CompletionResult]::new('--profiles', '--profiles', [CompletionResultType]::ParameterName, 'Select the profiles that should be benchmarked')
935935 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
936 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
936 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
937937 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
938938 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
939939 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -953,7 +953,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
953953 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
954954 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
955955 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
956 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
956 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
957957 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
958958 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
959959 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
......@@ -972,7 +972,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
972972 }
973973 'x.py;perf;compare' {
974974 [CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'TOML configuration file for build')
975 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `config.toml`')
975 [CompletionResult]::new('--build-dir', '--build-dir', [CompletionResultType]::ParameterName, 'Build directory, overrides `build.build-dir` in `bootstrap.toml`')
976976 [CompletionResult]::new('--build', '--build', [CompletionResultType]::ParameterName, 'build target of the stage0 compiler')
977977 [CompletionResult]::new('--host', '--host', [CompletionResultType]::ParameterName, 'host targets to build')
978978 [CompletionResult]::new('--target', '--target', [CompletionResultType]::ParameterName, 'target targets to build')
......@@ -993,7 +993,7 @@ Register-ArgumentCompleter -Native -CommandName 'x.py' -ScriptBlock {
993993 [CompletionResult]::new('--rust-profile-use', '--rust-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for rustc build')
994994 [CompletionResult]::new('--llvm-profile-use', '--llvm-profile-use', [CompletionResultType]::ParameterName, 'use PGO profile for LLVM build')
995995 [CompletionResult]::new('--reproducible-artifact', '--reproducible-artifact', [CompletionResultType]::ParameterName, 'Additional reproducible artifacts that should be added to the reproducible artifacts archive')
996 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in config.toml')
996 [CompletionResult]::new('--set', '--set', [CompletionResultType]::ParameterName, 'override options in bootstrap.toml')
997997 [CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
998998 [CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'use verbose output (-vv for very verbose)')
999999 [CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'use incremental compilation')
src/etc/completions/x.py.zsh+47-47
......@@ -16,7 +16,7 @@ _x.py() {
1616 local context curcontext="$curcontext" state line
1717 _arguments "${_arguments_options[@]}" : \
1818'--config=[TOML configuration file for build]:FILE:_files' \
19'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
19'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
2020'--build=[build target of the stage0 compiler]:BUILD:' \
2121'--host=[host targets to build]:HOST:' \
2222'--target=[target targets to build]:TARGET:' \
......@@ -37,7 +37,7 @@ _x.py() {
3737'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
3838'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
3939'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
40'*--set=[override options in config.toml]:section.option=value:' \
40'*--set=[override options in bootstrap.toml]:section.option=value:' \
4141'*-v[use verbose output (-vv for very verbose)]' \
4242'*--verbose[use verbose output (-vv for very verbose)]' \
4343'-i[use incremental compilation]' \
......@@ -66,7 +66,7 @@ _x.py() {
6666 (build)
6767_arguments "${_arguments_options[@]}" : \
6868'--config=[TOML configuration file for build]:FILE:_files' \
69'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
69'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
7070'--build=[build target of the stage0 compiler]:BUILD:' \
7171'--host=[host targets to build]:HOST:' \
7272'--target=[target targets to build]:TARGET:' \
......@@ -87,7 +87,7 @@ _arguments "${_arguments_options[@]}" : \
8787'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
8888'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
8989'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
90'*--set=[override options in config.toml]:section.option=value:' \
90'*--set=[override options in bootstrap.toml]:section.option=value:' \
9191'*-v[use verbose output (-vv for very verbose)]' \
9292'*--verbose[use verbose output (-vv for very verbose)]' \
9393'-i[use incremental compilation]' \
......@@ -108,7 +108,7 @@ _arguments "${_arguments_options[@]}" : \
108108(check)
109109_arguments "${_arguments_options[@]}" : \
110110'--config=[TOML configuration file for build]:FILE:_files' \
111'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
111'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
112112'--build=[build target of the stage0 compiler]:BUILD:' \
113113'--host=[host targets to build]:HOST:' \
114114'--target=[target targets to build]:TARGET:' \
......@@ -129,7 +129,7 @@ _arguments "${_arguments_options[@]}" : \
129129'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
130130'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
131131'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
132'*--set=[override options in config.toml]:section.option=value:' \
132'*--set=[override options in bootstrap.toml]:section.option=value:' \
133133'--all-targets[Check all targets]' \
134134'*-v[use verbose output (-vv for very verbose)]' \
135135'*--verbose[use verbose output (-vv for very verbose)]' \
......@@ -155,7 +155,7 @@ _arguments "${_arguments_options[@]}" : \
155155'*-W+[clippy lints to warn on]:LINT:_default' \
156156'*-F+[clippy lints to forbid]:LINT:_default' \
157157'--config=[TOML configuration file for build]:FILE:_files' \
158'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
158'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
159159'--build=[build target of the stage0 compiler]:BUILD:' \
160160'--host=[host targets to build]:HOST:' \
161161'--target=[target targets to build]:TARGET:' \
......@@ -176,7 +176,7 @@ _arguments "${_arguments_options[@]}" : \
176176'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
177177'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
178178'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
179'*--set=[override options in config.toml]:section.option=value:' \
179'*--set=[override options in bootstrap.toml]:section.option=value:' \
180180'--fix[]' \
181181'--allow-dirty[]' \
182182'--allow-staged[]' \
......@@ -200,7 +200,7 @@ _arguments "${_arguments_options[@]}" : \
200200(fix)
201201_arguments "${_arguments_options[@]}" : \
202202'--config=[TOML configuration file for build]:FILE:_files' \
203'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
203'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
204204'--build=[build target of the stage0 compiler]:BUILD:' \
205205'--host=[host targets to build]:HOST:' \
206206'--target=[target targets to build]:TARGET:' \
......@@ -221,7 +221,7 @@ _arguments "${_arguments_options[@]}" : \
221221'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
222222'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
223223'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
224'*--set=[override options in config.toml]:section.option=value:' \
224'*--set=[override options in bootstrap.toml]:section.option=value:' \
225225'*-v[use verbose output (-vv for very verbose)]' \
226226'*--verbose[use verbose output (-vv for very verbose)]' \
227227'-i[use incremental compilation]' \
......@@ -242,7 +242,7 @@ _arguments "${_arguments_options[@]}" : \
242242(fmt)
243243_arguments "${_arguments_options[@]}" : \
244244'--config=[TOML configuration file for build]:FILE:_files' \
245'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
245'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
246246'--build=[build target of the stage0 compiler]:BUILD:' \
247247'--host=[host targets to build]:HOST:' \
248248'--target=[target targets to build]:TARGET:' \
......@@ -263,7 +263,7 @@ _arguments "${_arguments_options[@]}" : \
263263'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
264264'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
265265'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
266'*--set=[override options in config.toml]:section.option=value:' \
266'*--set=[override options in bootstrap.toml]:section.option=value:' \
267267'--check[check formatting instead of applying]' \
268268'--all[apply to all appropriate files, not just those that have been modified]' \
269269'*-v[use verbose output (-vv for very verbose)]' \
......@@ -286,7 +286,7 @@ _arguments "${_arguments_options[@]}" : \
286286(doc)
287287_arguments "${_arguments_options[@]}" : \
288288'--config=[TOML configuration file for build]:FILE:_files' \
289'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
289'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
290290'--build=[build target of the stage0 compiler]:BUILD:' \
291291'--host=[host targets to build]:HOST:' \
292292'--target=[target targets to build]:TARGET:' \
......@@ -307,7 +307,7 @@ _arguments "${_arguments_options[@]}" : \
307307'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
308308'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
309309'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
310'*--set=[override options in config.toml]:section.option=value:' \
310'*--set=[override options in bootstrap.toml]:section.option=value:' \
311311'--open[open the docs in a browser]' \
312312'--json[render the documentation in JSON format in addition to the usual HTML format]' \
313313'*-v[use verbose output (-vv for very verbose)]' \
......@@ -336,7 +336,7 @@ _arguments "${_arguments_options[@]}" : \
336336'--pass=[force {check,build,run}-pass tests to this mode]:check | build | run:_default' \
337337'--run=[whether to execute run-* tests]:auto | always | never:_default' \
338338'--config=[TOML configuration file for build]:FILE:_files' \
339'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
339'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
340340'--build=[build target of the stage0 compiler]:BUILD:' \
341341'--host=[host targets to build]:HOST:' \
342342'--target=[target targets to build]:TARGET:' \
......@@ -357,7 +357,7 @@ _arguments "${_arguments_options[@]}" : \
357357'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
358358'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
359359'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
360'*--set=[override options in config.toml]:section.option=value:' \
360'*--set=[override options in bootstrap.toml]:section.option=value:' \
361361'--no-fail-fast[run all tests regardless of failure]' \
362362'--no-doc[do not run doc tests]' \
363363'--doc[only run doc tests]' \
......@@ -387,7 +387,7 @@ _arguments "${_arguments_options[@]}" : \
387387_arguments "${_arguments_options[@]}" : \
388388'*--test-args=[extra arguments to be passed for the test tool being used (e.g. libtest, compiletest or rustdoc)]:ARGS:_default' \
389389'--config=[TOML configuration file for build]:FILE:_files' \
390'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
390'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
391391'--build=[build target of the stage0 compiler]:BUILD:' \
392392'--host=[host targets to build]:HOST:' \
393393'--target=[target targets to build]:TARGET:' \
......@@ -408,7 +408,7 @@ _arguments "${_arguments_options[@]}" : \
408408'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
409409'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
410410'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
411'*--set=[override options in config.toml]:section.option=value:' \
411'*--set=[override options in bootstrap.toml]:section.option=value:' \
412412'--no-fail-fast[run all tests regardless of failure]' \
413413'--no-doc[do not run doc tests]' \
414414'--doc[only run doc tests]' \
......@@ -433,7 +433,7 @@ _arguments "${_arguments_options[@]}" : \
433433_arguments "${_arguments_options[@]}" : \
434434'*--test-args=[]:TEST_ARGS:_default' \
435435'--config=[TOML configuration file for build]:FILE:_files' \
436'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
436'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
437437'--build=[build target of the stage0 compiler]:BUILD:' \
438438'--host=[host targets to build]:HOST:' \
439439'--target=[target targets to build]:TARGET:' \
......@@ -454,7 +454,7 @@ _arguments "${_arguments_options[@]}" : \
454454'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
455455'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
456456'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
457'*--set=[override options in config.toml]:section.option=value:' \
457'*--set=[override options in bootstrap.toml]:section.option=value:' \
458458'*-v[use verbose output (-vv for very verbose)]' \
459459'*--verbose[use verbose output (-vv for very verbose)]' \
460460'-i[use incremental compilation]' \
......@@ -476,7 +476,7 @@ _arguments "${_arguments_options[@]}" : \
476476_arguments "${_arguments_options[@]}" : \
477477'--stage=[Clean a specific stage without touching other artifacts. By default, every stage is cleaned if this option is not used]:N:_default' \
478478'--config=[TOML configuration file for build]:FILE:_files' \
479'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
479'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
480480'--build=[build target of the stage0 compiler]:BUILD:' \
481481'--host=[host targets to build]:HOST:' \
482482'--target=[target targets to build]:TARGET:' \
......@@ -496,7 +496,7 @@ _arguments "${_arguments_options[@]}" : \
496496'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
497497'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
498498'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
499'*--set=[override options in config.toml]:section.option=value:' \
499'*--set=[override options in bootstrap.toml]:section.option=value:' \
500500'--all[Clean the entire build directory (not used by default)]' \
501501'*-v[use verbose output (-vv for very verbose)]' \
502502'*--verbose[use verbose output (-vv for very verbose)]' \
......@@ -518,7 +518,7 @@ _arguments "${_arguments_options[@]}" : \
518518(dist)
519519_arguments "${_arguments_options[@]}" : \
520520'--config=[TOML configuration file for build]:FILE:_files' \
521'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
521'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
522522'--build=[build target of the stage0 compiler]:BUILD:' \
523523'--host=[host targets to build]:HOST:' \
524524'--target=[target targets to build]:TARGET:' \
......@@ -539,7 +539,7 @@ _arguments "${_arguments_options[@]}" : \
539539'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
540540'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
541541'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
542'*--set=[override options in config.toml]:section.option=value:' \
542'*--set=[override options in bootstrap.toml]:section.option=value:' \
543543'*-v[use verbose output (-vv for very verbose)]' \
544544'*--verbose[use verbose output (-vv for very verbose)]' \
545545'-i[use incremental compilation]' \
......@@ -560,7 +560,7 @@ _arguments "${_arguments_options[@]}" : \
560560(install)
561561_arguments "${_arguments_options[@]}" : \
562562'--config=[TOML configuration file for build]:FILE:_files' \
563'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
563'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
564564'--build=[build target of the stage0 compiler]:BUILD:' \
565565'--host=[host targets to build]:HOST:' \
566566'--target=[target targets to build]:TARGET:' \
......@@ -581,7 +581,7 @@ _arguments "${_arguments_options[@]}" : \
581581'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
582582'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
583583'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
584'*--set=[override options in config.toml]:section.option=value:' \
584'*--set=[override options in bootstrap.toml]:section.option=value:' \
585585'*-v[use verbose output (-vv for very verbose)]' \
586586'*--verbose[use verbose output (-vv for very verbose)]' \
587587'-i[use incremental compilation]' \
......@@ -603,7 +603,7 @@ _arguments "${_arguments_options[@]}" : \
603603_arguments "${_arguments_options[@]}" : \
604604'*--args=[arguments for the tool]:ARGS:_default' \
605605'--config=[TOML configuration file for build]:FILE:_files' \
606'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
606'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
607607'--build=[build target of the stage0 compiler]:BUILD:' \
608608'--host=[host targets to build]:HOST:' \
609609'--target=[target targets to build]:TARGET:' \
......@@ -624,7 +624,7 @@ _arguments "${_arguments_options[@]}" : \
624624'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
625625'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
626626'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
627'*--set=[override options in config.toml]:section.option=value:' \
627'*--set=[override options in bootstrap.toml]:section.option=value:' \
628628'*-v[use verbose output (-vv for very verbose)]' \
629629'*--verbose[use verbose output (-vv for very verbose)]' \
630630'-i[use incremental compilation]' \
......@@ -645,7 +645,7 @@ _arguments "${_arguments_options[@]}" : \
645645(setup)
646646_arguments "${_arguments_options[@]}" : \
647647'--config=[TOML configuration file for build]:FILE:_files' \
648'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
648'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
649649'--build=[build target of the stage0 compiler]:BUILD:' \
650650'--host=[host targets to build]:HOST:' \
651651'--target=[target targets to build]:TARGET:' \
......@@ -666,7 +666,7 @@ _arguments "${_arguments_options[@]}" : \
666666'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
667667'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
668668'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
669'*--set=[override options in config.toml]:section.option=value:' \
669'*--set=[override options in bootstrap.toml]:section.option=value:' \
670670'*-v[use verbose output (-vv for very verbose)]' \
671671'*--verbose[use verbose output (-vv for very verbose)]' \
672672'-i[use incremental compilation]' \
......@@ -681,14 +681,14 @@ _arguments "${_arguments_options[@]}" : \
681681'--skip-stage0-validation[Skip stage0 compiler validation]' \
682682'-h[Print help (see more with '\''--help'\'')]' \
683683'--help[Print help (see more with '\''--help'\'')]' \
684'::profile -- Either the profile for `config.toml` or another setup action. May be omitted to set up interactively:_files' \
684'::profile -- Either the profile for `bootstrap.toml` or another setup action. May be omitted to set up interactively:_files' \
685685'*::paths -- paths for the subcommand:_files' \
686686&& ret=0
687687;;
688688(suggest)
689689_arguments "${_arguments_options[@]}" : \
690690'--config=[TOML configuration file for build]:FILE:_files' \
691'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
691'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
692692'--build=[build target of the stage0 compiler]:BUILD:' \
693693'--host=[host targets to build]:HOST:' \
694694'--target=[target targets to build]:TARGET:' \
......@@ -709,7 +709,7 @@ _arguments "${_arguments_options[@]}" : \
709709'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
710710'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
711711'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
712'*--set=[override options in config.toml]:section.option=value:' \
712'*--set=[override options in bootstrap.toml]:section.option=value:' \
713713'--run[run suggested tests]' \
714714'*-v[use verbose output (-vv for very verbose)]' \
715715'*--verbose[use verbose output (-vv for very verbose)]' \
......@@ -732,7 +732,7 @@ _arguments "${_arguments_options[@]}" : \
732732_arguments "${_arguments_options[@]}" : \
733733'*--sync=[Additional \`Cargo.toml\` to sync and vendor]:SYNC:_files' \
734734'--config=[TOML configuration file for build]:FILE:_files' \
735'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
735'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
736736'--build=[build target of the stage0 compiler]:BUILD:' \
737737'--host=[host targets to build]:HOST:' \
738738'--target=[target targets to build]:TARGET:' \
......@@ -753,7 +753,7 @@ _arguments "${_arguments_options[@]}" : \
753753'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
754754'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
755755'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
756'*--set=[override options in config.toml]:section.option=value:' \
756'*--set=[override options in bootstrap.toml]:section.option=value:' \
757757'--versioned-dirs[Always include version in subdir name]' \
758758'*-v[use verbose output (-vv for very verbose)]' \
759759'*--verbose[use verbose output (-vv for very verbose)]' \
......@@ -775,7 +775,7 @@ _arguments "${_arguments_options[@]}" : \
775775(perf)
776776_arguments "${_arguments_options[@]}" : \
777777'--config=[TOML configuration file for build]:FILE:_files' \
778'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
778'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
779779'--build=[build target of the stage0 compiler]:BUILD:' \
780780'--host=[host targets to build]:HOST:' \
781781'--target=[target targets to build]:TARGET:' \
......@@ -796,7 +796,7 @@ _arguments "${_arguments_options[@]}" : \
796796'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
797797'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
798798'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
799'*--set=[override options in config.toml]:section.option=value:' \
799'*--set=[override options in bootstrap.toml]:section.option=value:' \
800800'*-v[use verbose output (-vv for very verbose)]' \
801801'*--verbose[use verbose output (-vv for very verbose)]' \
802802'-i[use incremental compilation]' \
......@@ -830,7 +830,7 @@ _arguments "${_arguments_options[@]}" : \
830830'*--scenarios=[Select the scenarios that should be benchmarked]:SCENARIOS:(Full IncrFull IncrUnchanged IncrPatched)' \
831831'*--profiles=[Select the profiles that should be benchmarked]:PROFILES:(Check Debug Doc Opt Clippy)' \
832832'--config=[TOML configuration file for build]:FILE:_files' \
833'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
833'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
834834'--build=[build target of the stage0 compiler]:BUILD:' \
835835'--host=[host targets to build]:HOST:' \
836836'--target=[target targets to build]:TARGET:' \
......@@ -850,7 +850,7 @@ _arguments "${_arguments_options[@]}" : \
850850'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
851851'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
852852'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
853'*--set=[override options in config.toml]:section.option=value:' \
853'*--set=[override options in bootstrap.toml]:section.option=value:' \
854854'*-v[use verbose output (-vv for very verbose)]' \
855855'*--verbose[use verbose output (-vv for very verbose)]' \
856856'-i[use incremental compilation]' \
......@@ -875,7 +875,7 @@ _arguments "${_arguments_options[@]}" : \
875875'*--scenarios=[Select the scenarios that should be benchmarked]:SCENARIOS:(Full IncrFull IncrUnchanged IncrPatched)' \
876876'*--profiles=[Select the profiles that should be benchmarked]:PROFILES:(Check Debug Doc Opt Clippy)' \
877877'--config=[TOML configuration file for build]:FILE:_files' \
878'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
878'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
879879'--build=[build target of the stage0 compiler]:BUILD:' \
880880'--host=[host targets to build]:HOST:' \
881881'--target=[target targets to build]:TARGET:' \
......@@ -895,7 +895,7 @@ _arguments "${_arguments_options[@]}" : \
895895'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
896896'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
897897'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
898'*--set=[override options in config.toml]:section.option=value:' \
898'*--set=[override options in bootstrap.toml]:section.option=value:' \
899899'*-v[use verbose output (-vv for very verbose)]' \
900900'*--verbose[use verbose output (-vv for very verbose)]' \
901901'-i[use incremental compilation]' \
......@@ -920,7 +920,7 @@ _arguments "${_arguments_options[@]}" : \
920920'*--scenarios=[Select the scenarios that should be benchmarked]:SCENARIOS:(Full IncrFull IncrUnchanged IncrPatched)' \
921921'*--profiles=[Select the profiles that should be benchmarked]:PROFILES:(Check Debug Doc Opt Clippy)' \
922922'--config=[TOML configuration file for build]:FILE:_files' \
923'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
923'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
924924'--build=[build target of the stage0 compiler]:BUILD:' \
925925'--host=[host targets to build]:HOST:' \
926926'--target=[target targets to build]:TARGET:' \
......@@ -940,7 +940,7 @@ _arguments "${_arguments_options[@]}" : \
940940'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
941941'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
942942'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
943'*--set=[override options in config.toml]:section.option=value:' \
943'*--set=[override options in bootstrap.toml]:section.option=value:' \
944944'*-v[use verbose output (-vv for very verbose)]' \
945945'*--verbose[use verbose output (-vv for very verbose)]' \
946946'-i[use incremental compilation]' \
......@@ -965,7 +965,7 @@ _arguments "${_arguments_options[@]}" : \
965965'*--scenarios=[Select the scenarios that should be benchmarked]:SCENARIOS:(Full IncrFull IncrUnchanged IncrPatched)' \
966966'*--profiles=[Select the profiles that should be benchmarked]:PROFILES:(Check Debug Doc Opt Clippy)' \
967967'--config=[TOML configuration file for build]:FILE:_files' \
968'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
968'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
969969'--build=[build target of the stage0 compiler]:BUILD:' \
970970'--host=[host targets to build]:HOST:' \
971971'--target=[target targets to build]:TARGET:' \
......@@ -985,7 +985,7 @@ _arguments "${_arguments_options[@]}" : \
985985'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
986986'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
987987'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
988'*--set=[override options in config.toml]:section.option=value:' \
988'*--set=[override options in bootstrap.toml]:section.option=value:' \
989989'*-v[use verbose output (-vv for very verbose)]' \
990990'*--verbose[use verbose output (-vv for very verbose)]' \
991991'-i[use incremental compilation]' \
......@@ -1007,7 +1007,7 @@ _arguments "${_arguments_options[@]}" : \
10071007(compare)
10081008_arguments "${_arguments_options[@]}" : \
10091009'--config=[TOML configuration file for build]:FILE:_files' \
1010'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
1010'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
10111011'--build=[build target of the stage0 compiler]:BUILD:' \
10121012'--host=[host targets to build]:HOST:' \
10131013'--target=[target targets to build]:TARGET:' \
......@@ -1028,7 +1028,7 @@ _arguments "${_arguments_options[@]}" : \
10281028'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
10291029'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
10301030'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
1031'*--set=[override options in config.toml]:section.option=value:' \
1031'*--set=[override options in bootstrap.toml]:section.option=value:' \
10321032'*-v[use verbose output (-vv for very verbose)]' \
10331033'*--verbose[use verbose output (-vv for very verbose)]' \
10341034'-i[use incremental compilation]' \
src/etc/completions/x.zsh+47-47
......@@ -16,7 +16,7 @@ _x() {
1616 local context curcontext="$curcontext" state line
1717 _arguments "${_arguments_options[@]}" : \
1818'--config=[TOML configuration file for build]:FILE:_files' \
19'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
19'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
2020'--build=[build target of the stage0 compiler]:BUILD:' \
2121'--host=[host targets to build]:HOST:' \
2222'--target=[target targets to build]:TARGET:' \
......@@ -37,7 +37,7 @@ _x() {
3737'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
3838'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
3939'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
40'*--set=[override options in config.toml]:section.option=value:' \
40'*--set=[override options in bootstrap.toml]:section.option=value:' \
4141'*-v[use verbose output (-vv for very verbose)]' \
4242'*--verbose[use verbose output (-vv for very verbose)]' \
4343'-i[use incremental compilation]' \
......@@ -66,7 +66,7 @@ _x() {
6666 (build)
6767_arguments "${_arguments_options[@]}" : \
6868'--config=[TOML configuration file for build]:FILE:_files' \
69'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
69'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
7070'--build=[build target of the stage0 compiler]:BUILD:' \
7171'--host=[host targets to build]:HOST:' \
7272'--target=[target targets to build]:TARGET:' \
......@@ -87,7 +87,7 @@ _arguments "${_arguments_options[@]}" : \
8787'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
8888'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
8989'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
90'*--set=[override options in config.toml]:section.option=value:' \
90'*--set=[override options in bootstrap.toml]:section.option=value:' \
9191'*-v[use verbose output (-vv for very verbose)]' \
9292'*--verbose[use verbose output (-vv for very verbose)]' \
9393'-i[use incremental compilation]' \
......@@ -108,7 +108,7 @@ _arguments "${_arguments_options[@]}" : \
108108(check)
109109_arguments "${_arguments_options[@]}" : \
110110'--config=[TOML configuration file for build]:FILE:_files' \
111'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
111'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
112112'--build=[build target of the stage0 compiler]:BUILD:' \
113113'--host=[host targets to build]:HOST:' \
114114'--target=[target targets to build]:TARGET:' \
......@@ -129,7 +129,7 @@ _arguments "${_arguments_options[@]}" : \
129129'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
130130'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
131131'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
132'*--set=[override options in config.toml]:section.option=value:' \
132'*--set=[override options in bootstrap.toml]:section.option=value:' \
133133'--all-targets[Check all targets]' \
134134'*-v[use verbose output (-vv for very verbose)]' \
135135'*--verbose[use verbose output (-vv for very verbose)]' \
......@@ -155,7 +155,7 @@ _arguments "${_arguments_options[@]}" : \
155155'*-W+[clippy lints to warn on]:LINT:_default' \
156156'*-F+[clippy lints to forbid]:LINT:_default' \
157157'--config=[TOML configuration file for build]:FILE:_files' \
158'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
158'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
159159'--build=[build target of the stage0 compiler]:BUILD:' \
160160'--host=[host targets to build]:HOST:' \
161161'--target=[target targets to build]:TARGET:' \
......@@ -176,7 +176,7 @@ _arguments "${_arguments_options[@]}" : \
176176'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
177177'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
178178'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
179'*--set=[override options in config.toml]:section.option=value:' \
179'*--set=[override options in bootstrap.toml]:section.option=value:' \
180180'--fix[]' \
181181'--allow-dirty[]' \
182182'--allow-staged[]' \
......@@ -200,7 +200,7 @@ _arguments "${_arguments_options[@]}" : \
200200(fix)
201201_arguments "${_arguments_options[@]}" : \
202202'--config=[TOML configuration file for build]:FILE:_files' \
203'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
203'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
204204'--build=[build target of the stage0 compiler]:BUILD:' \
205205'--host=[host targets to build]:HOST:' \
206206'--target=[target targets to build]:TARGET:' \
......@@ -221,7 +221,7 @@ _arguments "${_arguments_options[@]}" : \
221221'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
222222'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
223223'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
224'*--set=[override options in config.toml]:section.option=value:' \
224'*--set=[override options in bootstrap.toml]:section.option=value:' \
225225'*-v[use verbose output (-vv for very verbose)]' \
226226'*--verbose[use verbose output (-vv for very verbose)]' \
227227'-i[use incremental compilation]' \
......@@ -242,7 +242,7 @@ _arguments "${_arguments_options[@]}" : \
242242(fmt)
243243_arguments "${_arguments_options[@]}" : \
244244'--config=[TOML configuration file for build]:FILE:_files' \
245'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
245'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
246246'--build=[build target of the stage0 compiler]:BUILD:' \
247247'--host=[host targets to build]:HOST:' \
248248'--target=[target targets to build]:TARGET:' \
......@@ -263,7 +263,7 @@ _arguments "${_arguments_options[@]}" : \
263263'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
264264'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
265265'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
266'*--set=[override options in config.toml]:section.option=value:' \
266'*--set=[override options in bootstrap.toml]:section.option=value:' \
267267'--check[check formatting instead of applying]' \
268268'--all[apply to all appropriate files, not just those that have been modified]' \
269269'*-v[use verbose output (-vv for very verbose)]' \
......@@ -286,7 +286,7 @@ _arguments "${_arguments_options[@]}" : \
286286(doc)
287287_arguments "${_arguments_options[@]}" : \
288288'--config=[TOML configuration file for build]:FILE:_files' \
289'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
289'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
290290'--build=[build target of the stage0 compiler]:BUILD:' \
291291'--host=[host targets to build]:HOST:' \
292292'--target=[target targets to build]:TARGET:' \
......@@ -307,7 +307,7 @@ _arguments "${_arguments_options[@]}" : \
307307'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
308308'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
309309'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
310'*--set=[override options in config.toml]:section.option=value:' \
310'*--set=[override options in bootstrap.toml]:section.option=value:' \
311311'--open[open the docs in a browser]' \
312312'--json[render the documentation in JSON format in addition to the usual HTML format]' \
313313'*-v[use verbose output (-vv for very verbose)]' \
......@@ -336,7 +336,7 @@ _arguments "${_arguments_options[@]}" : \
336336'--pass=[force {check,build,run}-pass tests to this mode]:check | build | run:_default' \
337337'--run=[whether to execute run-* tests]:auto | always | never:_default' \
338338'--config=[TOML configuration file for build]:FILE:_files' \
339'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
339'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
340340'--build=[build target of the stage0 compiler]:BUILD:' \
341341'--host=[host targets to build]:HOST:' \
342342'--target=[target targets to build]:TARGET:' \
......@@ -357,7 +357,7 @@ _arguments "${_arguments_options[@]}" : \
357357'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
358358'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
359359'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
360'*--set=[override options in config.toml]:section.option=value:' \
360'*--set=[override options in bootstrap.toml]:section.option=value:' \
361361'--no-fail-fast[run all tests regardless of failure]' \
362362'--no-doc[do not run doc tests]' \
363363'--doc[only run doc tests]' \
......@@ -387,7 +387,7 @@ _arguments "${_arguments_options[@]}" : \
387387_arguments "${_arguments_options[@]}" : \
388388'*--test-args=[extra arguments to be passed for the test tool being used (e.g. libtest, compiletest or rustdoc)]:ARGS:_default' \
389389'--config=[TOML configuration file for build]:FILE:_files' \
390'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
390'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
391391'--build=[build target of the stage0 compiler]:BUILD:' \
392392'--host=[host targets to build]:HOST:' \
393393'--target=[target targets to build]:TARGET:' \
......@@ -408,7 +408,7 @@ _arguments "${_arguments_options[@]}" : \
408408'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
409409'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
410410'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
411'*--set=[override options in config.toml]:section.option=value:' \
411'*--set=[override options in bootstrap.toml]:section.option=value:' \
412412'--no-fail-fast[run all tests regardless of failure]' \
413413'--no-doc[do not run doc tests]' \
414414'--doc[only run doc tests]' \
......@@ -433,7 +433,7 @@ _arguments "${_arguments_options[@]}" : \
433433_arguments "${_arguments_options[@]}" : \
434434'*--test-args=[]:TEST_ARGS:_default' \
435435'--config=[TOML configuration file for build]:FILE:_files' \
436'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
436'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
437437'--build=[build target of the stage0 compiler]:BUILD:' \
438438'--host=[host targets to build]:HOST:' \
439439'--target=[target targets to build]:TARGET:' \
......@@ -454,7 +454,7 @@ _arguments "${_arguments_options[@]}" : \
454454'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
455455'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
456456'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
457'*--set=[override options in config.toml]:section.option=value:' \
457'*--set=[override options in bootstrap.toml]:section.option=value:' \
458458'*-v[use verbose output (-vv for very verbose)]' \
459459'*--verbose[use verbose output (-vv for very verbose)]' \
460460'-i[use incremental compilation]' \
......@@ -476,7 +476,7 @@ _arguments "${_arguments_options[@]}" : \
476476_arguments "${_arguments_options[@]}" : \
477477'--stage=[Clean a specific stage without touching other artifacts. By default, every stage is cleaned if this option is not used]:N:_default' \
478478'--config=[TOML configuration file for build]:FILE:_files' \
479'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
479'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
480480'--build=[build target of the stage0 compiler]:BUILD:' \
481481'--host=[host targets to build]:HOST:' \
482482'--target=[target targets to build]:TARGET:' \
......@@ -496,7 +496,7 @@ _arguments "${_arguments_options[@]}" : \
496496'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
497497'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
498498'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
499'*--set=[override options in config.toml]:section.option=value:' \
499'*--set=[override options in bootstrap.toml]:section.option=value:' \
500500'--all[Clean the entire build directory (not used by default)]' \
501501'*-v[use verbose output (-vv for very verbose)]' \
502502'*--verbose[use verbose output (-vv for very verbose)]' \
......@@ -518,7 +518,7 @@ _arguments "${_arguments_options[@]}" : \
518518(dist)
519519_arguments "${_arguments_options[@]}" : \
520520'--config=[TOML configuration file for build]:FILE:_files' \
521'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
521'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
522522'--build=[build target of the stage0 compiler]:BUILD:' \
523523'--host=[host targets to build]:HOST:' \
524524'--target=[target targets to build]:TARGET:' \
......@@ -539,7 +539,7 @@ _arguments "${_arguments_options[@]}" : \
539539'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
540540'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
541541'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
542'*--set=[override options in config.toml]:section.option=value:' \
542'*--set=[override options in bootstrap.toml]:section.option=value:' \
543543'*-v[use verbose output (-vv for very verbose)]' \
544544'*--verbose[use verbose output (-vv for very verbose)]' \
545545'-i[use incremental compilation]' \
......@@ -560,7 +560,7 @@ _arguments "${_arguments_options[@]}" : \
560560(install)
561561_arguments "${_arguments_options[@]}" : \
562562'--config=[TOML configuration file for build]:FILE:_files' \
563'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
563'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
564564'--build=[build target of the stage0 compiler]:BUILD:' \
565565'--host=[host targets to build]:HOST:' \
566566'--target=[target targets to build]:TARGET:' \
......@@ -581,7 +581,7 @@ _arguments "${_arguments_options[@]}" : \
581581'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
582582'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
583583'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
584'*--set=[override options in config.toml]:section.option=value:' \
584'*--set=[override options in bootstrap.toml]:section.option=value:' \
585585'*-v[use verbose output (-vv for very verbose)]' \
586586'*--verbose[use verbose output (-vv for very verbose)]' \
587587'-i[use incremental compilation]' \
......@@ -603,7 +603,7 @@ _arguments "${_arguments_options[@]}" : \
603603_arguments "${_arguments_options[@]}" : \
604604'*--args=[arguments for the tool]:ARGS:_default' \
605605'--config=[TOML configuration file for build]:FILE:_files' \
606'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
606'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
607607'--build=[build target of the stage0 compiler]:BUILD:' \
608608'--host=[host targets to build]:HOST:' \
609609'--target=[target targets to build]:TARGET:' \
......@@ -624,7 +624,7 @@ _arguments "${_arguments_options[@]}" : \
624624'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
625625'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
626626'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
627'*--set=[override options in config.toml]:section.option=value:' \
627'*--set=[override options in bootstrap.toml]:section.option=value:' \
628628'*-v[use verbose output (-vv for very verbose)]' \
629629'*--verbose[use verbose output (-vv for very verbose)]' \
630630'-i[use incremental compilation]' \
......@@ -645,7 +645,7 @@ _arguments "${_arguments_options[@]}" : \
645645(setup)
646646_arguments "${_arguments_options[@]}" : \
647647'--config=[TOML configuration file for build]:FILE:_files' \
648'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
648'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
649649'--build=[build target of the stage0 compiler]:BUILD:' \
650650'--host=[host targets to build]:HOST:' \
651651'--target=[target targets to build]:TARGET:' \
......@@ -666,7 +666,7 @@ _arguments "${_arguments_options[@]}" : \
666666'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
667667'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
668668'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
669'*--set=[override options in config.toml]:section.option=value:' \
669'*--set=[override options in bootstrap.toml]:section.option=value:' \
670670'*-v[use verbose output (-vv for very verbose)]' \
671671'*--verbose[use verbose output (-vv for very verbose)]' \
672672'-i[use incremental compilation]' \
......@@ -681,14 +681,14 @@ _arguments "${_arguments_options[@]}" : \
681681'--skip-stage0-validation[Skip stage0 compiler validation]' \
682682'-h[Print help (see more with '\''--help'\'')]' \
683683'--help[Print help (see more with '\''--help'\'')]' \
684'::profile -- Either the profile for `config.toml` or another setup action. May be omitted to set up interactively:_files' \
684'::profile -- Either the profile for `bootstrap.toml` or another setup action. May be omitted to set up interactively:_files' \
685685'*::paths -- paths for the subcommand:_files' \
686686&& ret=0
687687;;
688688(suggest)
689689_arguments "${_arguments_options[@]}" : \
690690'--config=[TOML configuration file for build]:FILE:_files' \
691'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
691'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
692692'--build=[build target of the stage0 compiler]:BUILD:' \
693693'--host=[host targets to build]:HOST:' \
694694'--target=[target targets to build]:TARGET:' \
......@@ -709,7 +709,7 @@ _arguments "${_arguments_options[@]}" : \
709709'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
710710'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
711711'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
712'*--set=[override options in config.toml]:section.option=value:' \
712'*--set=[override options in bootstrap.toml]:section.option=value:' \
713713'--run[run suggested tests]' \
714714'*-v[use verbose output (-vv for very verbose)]' \
715715'*--verbose[use verbose output (-vv for very verbose)]' \
......@@ -732,7 +732,7 @@ _arguments "${_arguments_options[@]}" : \
732732_arguments "${_arguments_options[@]}" : \
733733'*--sync=[Additional \`Cargo.toml\` to sync and vendor]:SYNC:_files' \
734734'--config=[TOML configuration file for build]:FILE:_files' \
735'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
735'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
736736'--build=[build target of the stage0 compiler]:BUILD:' \
737737'--host=[host targets to build]:HOST:' \
738738'--target=[target targets to build]:TARGET:' \
......@@ -753,7 +753,7 @@ _arguments "${_arguments_options[@]}" : \
753753'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
754754'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
755755'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
756'*--set=[override options in config.toml]:section.option=value:' \
756'*--set=[override options in bootstrap.toml]:section.option=value:' \
757757'--versioned-dirs[Always include version in subdir name]' \
758758'*-v[use verbose output (-vv for very verbose)]' \
759759'*--verbose[use verbose output (-vv for very verbose)]' \
......@@ -775,7 +775,7 @@ _arguments "${_arguments_options[@]}" : \
775775(perf)
776776_arguments "${_arguments_options[@]}" : \
777777'--config=[TOML configuration file for build]:FILE:_files' \
778'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
778'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
779779'--build=[build target of the stage0 compiler]:BUILD:' \
780780'--host=[host targets to build]:HOST:' \
781781'--target=[target targets to build]:TARGET:' \
......@@ -796,7 +796,7 @@ _arguments "${_arguments_options[@]}" : \
796796'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
797797'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
798798'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
799'*--set=[override options in config.toml]:section.option=value:' \
799'*--set=[override options in bootstrap.toml]:section.option=value:' \
800800'*-v[use verbose output (-vv for very verbose)]' \
801801'*--verbose[use verbose output (-vv for very verbose)]' \
802802'-i[use incremental compilation]' \
......@@ -830,7 +830,7 @@ _arguments "${_arguments_options[@]}" : \
830830'*--scenarios=[Select the scenarios that should be benchmarked]:SCENARIOS:(Full IncrFull IncrUnchanged IncrPatched)' \
831831'*--profiles=[Select the profiles that should be benchmarked]:PROFILES:(Check Debug Doc Opt Clippy)' \
832832'--config=[TOML configuration file for build]:FILE:_files' \
833'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
833'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
834834'--build=[build target of the stage0 compiler]:BUILD:' \
835835'--host=[host targets to build]:HOST:' \
836836'--target=[target targets to build]:TARGET:' \
......@@ -850,7 +850,7 @@ _arguments "${_arguments_options[@]}" : \
850850'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
851851'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
852852'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
853'*--set=[override options in config.toml]:section.option=value:' \
853'*--set=[override options in bootstrap.toml]:section.option=value:' \
854854'*-v[use verbose output (-vv for very verbose)]' \
855855'*--verbose[use verbose output (-vv for very verbose)]' \
856856'-i[use incremental compilation]' \
......@@ -875,7 +875,7 @@ _arguments "${_arguments_options[@]}" : \
875875'*--scenarios=[Select the scenarios that should be benchmarked]:SCENARIOS:(Full IncrFull IncrUnchanged IncrPatched)' \
876876'*--profiles=[Select the profiles that should be benchmarked]:PROFILES:(Check Debug Doc Opt Clippy)' \
877877'--config=[TOML configuration file for build]:FILE:_files' \
878'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
878'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
879879'--build=[build target of the stage0 compiler]:BUILD:' \
880880'--host=[host targets to build]:HOST:' \
881881'--target=[target targets to build]:TARGET:' \
......@@ -895,7 +895,7 @@ _arguments "${_arguments_options[@]}" : \
895895'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
896896'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
897897'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
898'*--set=[override options in config.toml]:section.option=value:' \
898'*--set=[override options in bootstrap.toml]:section.option=value:' \
899899'*-v[use verbose output (-vv for very verbose)]' \
900900'*--verbose[use verbose output (-vv for very verbose)]' \
901901'-i[use incremental compilation]' \
......@@ -920,7 +920,7 @@ _arguments "${_arguments_options[@]}" : \
920920'*--scenarios=[Select the scenarios that should be benchmarked]:SCENARIOS:(Full IncrFull IncrUnchanged IncrPatched)' \
921921'*--profiles=[Select the profiles that should be benchmarked]:PROFILES:(Check Debug Doc Opt Clippy)' \
922922'--config=[TOML configuration file for build]:FILE:_files' \
923'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
923'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
924924'--build=[build target of the stage0 compiler]:BUILD:' \
925925'--host=[host targets to build]:HOST:' \
926926'--target=[target targets to build]:TARGET:' \
......@@ -940,7 +940,7 @@ _arguments "${_arguments_options[@]}" : \
940940'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
941941'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
942942'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
943'*--set=[override options in config.toml]:section.option=value:' \
943'*--set=[override options in bootstrap.toml]:section.option=value:' \
944944'*-v[use verbose output (-vv for very verbose)]' \
945945'*--verbose[use verbose output (-vv for very verbose)]' \
946946'-i[use incremental compilation]' \
......@@ -965,7 +965,7 @@ _arguments "${_arguments_options[@]}" : \
965965'*--scenarios=[Select the scenarios that should be benchmarked]:SCENARIOS:(Full IncrFull IncrUnchanged IncrPatched)' \
966966'*--profiles=[Select the profiles that should be benchmarked]:PROFILES:(Check Debug Doc Opt Clippy)' \
967967'--config=[TOML configuration file for build]:FILE:_files' \
968'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
968'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
969969'--build=[build target of the stage0 compiler]:BUILD:' \
970970'--host=[host targets to build]:HOST:' \
971971'--target=[target targets to build]:TARGET:' \
......@@ -985,7 +985,7 @@ _arguments "${_arguments_options[@]}" : \
985985'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
986986'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
987987'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
988'*--set=[override options in config.toml]:section.option=value:' \
988'*--set=[override options in bootstrap.toml]:section.option=value:' \
989989'*-v[use verbose output (-vv for very verbose)]' \
990990'*--verbose[use verbose output (-vv for very verbose)]' \
991991'-i[use incremental compilation]' \
......@@ -1007,7 +1007,7 @@ _arguments "${_arguments_options[@]}" : \
10071007(compare)
10081008_arguments "${_arguments_options[@]}" : \
10091009'--config=[TOML configuration file for build]:FILE:_files' \
1010'--build-dir=[Build directory, overrides \`build.build-dir\` in \`config.toml\`]:DIR:_files -/' \
1010'--build-dir=[Build directory, overrides \`build.build-dir\` in \`bootstrap.toml\`]:DIR:_files -/' \
10111011'--build=[build target of the stage0 compiler]:BUILD:' \
10121012'--host=[host targets to build]:HOST:' \
10131013'--target=[target targets to build]:TARGET:' \
......@@ -1028,7 +1028,7 @@ _arguments "${_arguments_options[@]}" : \
10281028'--rust-profile-use=[use PGO profile for rustc build]:PROFILE:_files' \
10291029'--llvm-profile-use=[use PGO profile for LLVM build]:PROFILE:_files' \
10301030'*--reproducible-artifact=[Additional reproducible artifacts that should be added to the reproducible artifacts archive]:REPRODUCIBLE_ARTIFACT:_default' \
1031'*--set=[override options in config.toml]:section.option=value:' \
1031'*--set=[override options in bootstrap.toml]:section.option=value:' \
10321032'*-v[use verbose output (-vv for very verbose)]' \
10331033'*--verbose[use verbose output (-vv for very verbose)]' \
10341034'-i[use incremental compilation]' \
src/tools/compiletest/src/main.rs+1-1
......@@ -27,7 +27,7 @@ fn main() {
2727 eprintln!(
2828 r#"
2929WARNING: profiler runtime is not available, so `.coverage` files won't be {actioned}
30help: try setting `profiler = true` in the `[build]` section of `config.toml`"#
30help: try setting `profiler = true` in the `[build]` section of `bootstrap.toml`"#
3131 );
3232 }
3333
src/tools/miri/CONTRIBUTING.md+1-1
......@@ -153,7 +153,7 @@ MIRI_LOG=rustc_mir::interpret=info,miri::stacked_borrows ./miri run tests/pass/v
153153
154154Note that you will only get `info`, `warn` or `error` messages if you use a prebuilt compiler.
155155In order to get `debug` and `trace` level messages, you need to build miri with a locally built
156compiler that has `debug=true` set in `config.toml`.
156compiler that has `debug=true` set in `bootstrap.toml`.
157157
158158#### Debugging error messages
159159
src/tools/miri/cargo-miri/src/setup.rs+1-1
......@@ -115,7 +115,7 @@ pub fn setup(
115115 // https://github.com/rust-lang/miri/issues/1421,
116116 // https://github.com/rust-lang/miri/issues/2429). Looks like setting
117117 // `RUSTC_WRAPPER` to the empty string overwrites `build.rustc-wrapper` set via
118 // `config.toml`.
118 // `bootstrap.toml`.
119119 command.env("RUSTC_WRAPPER", "");
120120
121121 if show_setup {
src/tools/opt-dist/src/main.rs+11-3
......@@ -369,9 +369,17 @@ fn main() -> anyhow::Result<()> {
369369 println!("Environment values\n{}", format_env_variables());
370370 });
371371
372 with_log_group("Printing config.toml", || {
373 if let Ok(config) = std::fs::read_to_string("config.toml") {
374 println!("Contents of `config.toml`:\n{config}");
372 with_log_group("Printing bootstrap.toml", || {
373 let config_file = if std::path::Path::new("bootstrap.toml").exists() {
374 "bootstrap.toml"
375 } else {
376 "config.toml" // Fall back for backward compatibility
377 };
378
379 if let Ok(config) = std::fs::read_to_string(config_file) {
380 println!("Contents of `bootstrap.toml`:\n{config}");
381 } else {
382 eprintln!("Failed to read `{}`", config_file);
375383 }
376384 });
377385
src/tools/opt-dist/src/tests.rs+2-2
......@@ -85,10 +85,10 @@ llvm-config = "{llvm_config}"
8585 cargo = cargo_path.to_string().replace('\\', "/"),
8686 llvm_config = llvm_config.to_string().replace('\\', "/")
8787 );
88 log::info!("Using following `config.toml` for running tests:\n{config_content}");
88 log::info!("Using following `bootstrap.toml` for running tests:\n{config_content}");
8989
9090 // Simulate a stage 0 compiler with the extracted optimized dist artifacts.
91 with_backed_up_file(Path::new("config.toml"), &config_content, || {
91 with_backed_up_file(Path::new("bootstrap.toml"), &config_content, || {
9292 let x_py = env.checkout_path().join("x.py");
9393 let mut args = vec![
9494 env.python_binary(),
src/tools/rustdoc-gui-test/src/main.rs+1-1
......@@ -20,7 +20,7 @@ fn get_browser_ui_test_version_inner(npm: &Path, global: bool) -> Option<String>
2020 Err(e) => {
2121 eprintln!(
2222 "path to npm can be wrong, provided path: {npm:?}. Try to set npm path \
23 in config.toml in [build.npm]",
23 in bootstrap.toml in [build.npm]",
2424 );
2525 panic!("{:?}", e)
2626 }
tests/run-make/linker-warning/rmake.rs+1-1
......@@ -4,7 +4,7 @@ fn run_rustc() -> Rustc {
44 let mut rustc = rustc();
55 rustc
66 .arg("main.rs")
7 // NOTE: `link-self-contained` can vary depending on config.toml.
7 // NOTE: `link-self-contained` can vary depending on bootstrap.toml.
88 // Make sure we use a consistent value.
99 .arg("-Clink-self-contained=-linker")
1010 .arg("-Zunstable-options")
triagebot.toml+3-3
......@@ -421,7 +421,7 @@ trigger_files = [
421421trigger_files = [
422422 "Cargo.toml",
423423 "configure",
424 "config.example.toml",
424 "bootstrap.example.toml",
425425 "src/bootstrap",
426426 "src/build_helper",
427427 "src/tools/rust-installer",
......@@ -948,9 +948,9 @@ This PR modifies `src/bootstrap/defaults`.
948948
949949If appropriate, please update `CONFIG_CHANGE_HISTORY` in `src/bootstrap/src/utils/change_tracker.rs`.
950950"""
951[mentions."config.example.toml"]
951[mentions."bootstrap.example.toml"]
952952message = """
953This PR modifies `config.example.toml`.
953This PR modifies `bootstrap.example.toml`.
954954
955955If appropriate, please update `CONFIG_CHANGE_HISTORY` in `src/bootstrap/src/utils/change_tracker.rs`.
956956"""