File tree 1 file changed +7
-2
lines changed
src/doc/rustc-dev-guide/src/building
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -109,11 +109,16 @@ like Python or LLVM.
109
109
110
110
Here is an example of how can ` opt-dist ` be used locally (outside of CI):
111
111
112
- 1 . Build the tool with the following command:
112
+ 1 . Enable metrics in your ` bootstrap.toml ` file, because ` opt-dist ` expects it to be enabled:
113
+ ``` toml
114
+ [build ]
115
+ metrics = true
116
+ ```
117
+ 2 . Build the tool with the following command:
113
118
``` bash
114
119
./x build tools/opt-dist
115
120
```
116
- 2 . Run the tool with the ` local` mode and provide necessary parameters:
121
+ 3 . Run the tool with the ` local` mode and provide necessary parameters:
117
122
` ` ` bash
118
123
./build/host/stage0-tools-bin/opt-dist local \
119
124
--target-triple < target> \ # select target, e.g. "x86_64-unknown-linux-gnu"
You can’t perform that action at this time.
0 commit comments