From d96a65c6732ab3aa798dd8265672d4bd93afdf9e Mon Sep 17 00:00:00 2001 From: Maksim Bondarenkov Date: Fri, 11 Apr 2025 21:11:14 +0300 Subject: [PATCH] opt-dist: explicitly pass `--set build.metrics=true` while running build 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 --- src/tools/opt-dist/src/exec.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tools/opt-dist/src/exec.rs b/src/tools/opt-dist/src/exec.rs index deff69a7f9c00..b69a78c6fda8f 100644 --- a/src/tools/opt-dist/src/exec.rs +++ b/src/tools/opt-dist/src/exec.rs @@ -111,6 +111,8 @@ impl Bootstrap { "--stage", "2", "library/std", + "--set", + "build.metrics=true", ]) .env("RUST_BACKTRACE", "full"); Self { cmd, metrics_path }