opt-dist: explicitly pass --set build.metrics=true while running build#139686
opt-dist: explicitly pass --set build.metrics=true while running build#139686ognevny wants to merge 1 commit intorust-lang:masterfrom
--set build.metrics=true while running build#139686Conversation
at first it's not obvious that build.metrics should be enabled to use opt-dist which will lead to confusion. probably it's better to add a good error message which instructs to set this option manually
|
Some changes occurred in src/tools/opt-dist cc @Kobzol |
|
Hi, if I understand the problem correctly, you are trying to use |
|
yes, I use opt-dist with |
|
It's slightly documented here, but it's really best effort, it's mostly designed for our internal CI usage, and potentially for distro people who are feeling courageous :) You could fix the metrics problem by adding the flag in |
|
yeah, documenting seems a better option in this case. I'm just "playing" with opt-dist as I try to compile Rust with PGO in msys2 :) |
|
You can modify the link that I posted directly in this repo ( |
|
thanks. I'll let you to change the docs, so it will be made prettier faster (than processing through multiple reviews 😄). feel free to close this PR |
|
Well if you did the change, I could approve it, which probably makes it faster, because if I make the change, someone else will have to approve xD But it doesn't really matter. Sent #139691. |
Document that `opt-dist` requires metrics to be enabled Suggested in rust-lang#139686.
Document that `opt-dist` requires metrics to be enabled Suggested in rust-lang#139686.
Document that `opt-dist` requires metrics to be enabled Suggested in rust-lang#139686.
Document that `opt-dist` requires metrics to be enabled Suggested in rust-lang#139686.
Document that `opt-dist` requires metrics to be enabled Suggested in rust-lang#139686.
Rollup merge of rust-lang#139691 - Kobzol:opt-dist-docs, r=jieyouxu Document that `opt-dist` requires metrics to be enabled Suggested in rust-lang#139686.
Document that `opt-dist` requires metrics to be enabled Suggested in rust-lang/rust#139686.
at first it's not obvious that build.metrics should be enabled to use opt-dist which will lead to confusion. probably it's better to add a good error message which instructs to set this option manually
edit: are there more places which need such change?