|  | 
|  | 1 | + | 
|  | 2 | +Usage: x.py <subcommand> [options] [<paths>...] | 
|  | 3 | + | 
|  | 4 | +Commands: | 
|  | 5 | +  build    Compile either the compiler or libraries | 
|  | 6 | +  check    Compile either the compiler or libraries, using cargo check | 
|  | 7 | +  clippy   Run Clippy (uses rustup/cargo-installed clippy binary) | 
|  | 8 | +  fix      Run cargo fix | 
|  | 9 | +  fmt      Run rustfmt | 
|  | 10 | +  doc      Build documentation | 
|  | 11 | +  test     Build and run some test suites | 
|  | 12 | +  miri     Build and run some test suites *in Miri* | 
|  | 13 | +  bench    Build and run some benchmarks | 
|  | 14 | +  clean    Clean out build directories | 
|  | 15 | +  dist     Build distribution artifacts | 
|  | 16 | +  install  Install distribution artifacts | 
|  | 17 | +  run      Run tools contained in this repository | 
|  | 18 | +  setup    Set up the environment for development | 
|  | 19 | +  vendor   Vendor dependencies | 
|  | 20 | +  perf     Perform profiling and benchmarking of the compiler using `rustc-perf` | 
|  | 21 | + | 
|  | 22 | +Arguments: | 
|  | 23 | +  [PATHS]...  paths for the subcommand | 
|  | 24 | +  [ARGS]...   arguments passed to subcommands | 
|  | 25 | + | 
|  | 26 | +Options: | 
|  | 27 | +  -v, --verbose... | 
|  | 28 | +          use verbose output (-vv for very verbose) | 
|  | 29 | +  -i, --incremental | 
|  | 30 | +          use incremental compilation | 
|  | 31 | +      --config <FILE> | 
|  | 32 | +          TOML configuration file for build | 
|  | 33 | +      --build-dir <DIR> | 
|  | 34 | +          Build directory, overrides `build.build-dir` in `bootstrap.toml` | 
|  | 35 | +      --build <BUILD> | 
|  | 36 | +          host target of the stage0 compiler | 
|  | 37 | +      --host <HOST> | 
|  | 38 | +          host targets to build | 
|  | 39 | +      --target <TARGET> | 
|  | 40 | +          target targets to build | 
|  | 41 | +      --exclude <PATH> | 
|  | 42 | +          build paths to exclude | 
|  | 43 | +      --skip <PATH> | 
|  | 44 | +          build paths to skip | 
|  | 45 | +      --include-default-paths | 
|  | 46 | +          include default paths in addition to the provided ones | 
|  | 47 | +      --rustc-error-format <RUSTC_ERROR_FORMAT> | 
|  | 48 | +          rustc error format | 
|  | 49 | +      --on-fail <CMD> | 
|  | 50 | +          command to run on failure | 
|  | 51 | +      --dry-run | 
|  | 52 | +          dry run; don't build anything | 
|  | 53 | +      --dump-bootstrap-shims | 
|  | 54 | +          Indicates whether to dump the work done from bootstrap shims | 
|  | 55 | +      --stage <N> | 
|  | 56 | +          stage to build (indicates compiler to use/test, e.g., stage 0 uses the bootstrap compiler, stage 1 the stage 0 rustc artifacts, etc.) | 
|  | 57 | +      --keep-stage <N> | 
|  | 58 | +          stage(s) to keep without recompiling (pass multiple times to keep e.g., both stages 0 and 1) | 
|  | 59 | +      --keep-stage-std <N> | 
|  | 60 | +          stage(s) of the standard library to keep without recompiling (pass multiple times to keep e.g., both stages 0 and 1) | 
|  | 61 | +      --src <DIR> | 
|  | 62 | +          path to the root of the rust checkout | 
|  | 63 | +  -j, --jobs <JOBS> | 
|  | 64 | +          number of jobs to run in parallel | 
|  | 65 | +      --warnings <deny|warn> | 
|  | 66 | +          if value is deny, will deny warnings if value is warn, will emit warnings otherwise, use the default configured behaviour [default: default] [possible values: deny, warn, default] | 
|  | 67 | +      --json-output | 
|  | 68 | +          use message-format=json | 
|  | 69 | +      --compile-time-deps | 
|  | 70 | +          only build proc-macros and build scripts (for rust-analyzer) | 
|  | 71 | +      --color <STYLE> | 
|  | 72 | +          whether to use color in cargo and rustc output [default: auto] [possible values: always, never, auto] | 
|  | 73 | +      --bypass-bootstrap-lock | 
|  | 74 | +          Bootstrap uses this value to decide whether it should bypass locking the build process. This is rarely needed (e.g., compiling the std library for different targets in parallel) | 
|  | 75 | +      --rust-profile-generate <PROFILE> | 
|  | 76 | +          generate PGO profile with rustc build | 
|  | 77 | +      --rust-profile-use <PROFILE> | 
|  | 78 | +          use PGO profile for rustc build | 
|  | 79 | +      --llvm-profile-use <PROFILE> | 
|  | 80 | +          use PGO profile for LLVM build | 
|  | 81 | +      --llvm-profile-generate | 
|  | 82 | +          generate PGO profile with llvm built for rustc | 
|  | 83 | +      --enable-bolt-settings | 
|  | 84 | +          Enable BOLT link flags | 
|  | 85 | +      --skip-stage0-validation | 
|  | 86 | +          Skip stage0 compiler validation | 
|  | 87 | +      --reproducible-artifact <REPRODUCIBLE_ARTIFACT> | 
|  | 88 | +          Additional reproducible artifacts that should be added to the reproducible artifacts archive | 
|  | 89 | +      --set <section.option=value> | 
|  | 90 | +          override options in bootstrap.toml | 
|  | 91 | +      --ci <bool> | 
|  | 92 | +          Make bootstrap to behave as it's running on the CI environment or not [possible values: true, false] | 
|  | 93 | +      --skip-std-check-if-no-download-rustc | 
|  | 94 | +          Skip checking the standard library if `rust.download-rustc` isn't available. This is mostly for RA as building the stage1 compiler to check the library tree on each code change might be too much for some computers | 
|  | 95 | +  -h, --help | 
|  | 96 | +          Print help (see more with '--help') | 
0 commit comments