diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2025-04-11 21:30:10 +0200 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2025-04-11 21:30:10 +0200 |
| commit | 394610b6d6b0bde38f75b7cc41ec1931bb7f0323 (patch) | |
| tree | ded5553db17a4e7394eb3300ea83e08a7516899b | |
| parent | e1b06f773063140263558b858cb6e4c99755a763 (diff) | |
| download | rust-394610b6d6b0bde38f75b7cc41ec1931bb7f0323.tar.gz rust-394610b6d6b0bde38f75b7cc41ec1931bb7f0323.zip | |
Document that `opt-dist` requires metrics to be enabled
| -rw-r--r-- | src/doc/rustc-dev-guide/src/building/optimized-build.md | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/doc/rustc-dev-guide/src/building/optimized-build.md b/src/doc/rustc-dev-guide/src/building/optimized-build.md index 0849464eab3..62dfaca89d2 100644 --- a/src/doc/rustc-dev-guide/src/building/optimized-build.md +++ b/src/doc/rustc-dev-guide/src/building/optimized-build.md @@ -109,11 +109,16 @@ like Python or LLVM. Here is an example of how can `opt-dist` be used locally (outside of CI): -1. Build the tool with the following command: +1. Enable metrics in your `bootstrap.toml` file, because `opt-dist` expects it to be enabled: + ```toml + [build] + metrics = true + ``` +2. Build the tool with the following command: ```bash ./x build tools/opt-dist ``` -2. Run the tool with the `local` mode and provide necessary parameters: +3. Run the tool with the `local` mode and provide necessary parameters: ```bash ./build/host/stage0-tools-bin/opt-dist local \ --target-triple <target> \ # select target, e.g. "x86_64-unknown-linux-gnu" |
