Skip to content

Commit f053669

Browse files
committed
use source std on stage 0 for opt-dist
Signed-off-by: onur-ozkan <[email protected]>
1 parent 9ee00b7 commit f053669

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/tools/opt-dist/src/exec.rs

+6
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ impl Bootstrap {
109109
"--stage",
110110
"2",
111111
"library/std",
112+
// FIXME: benchmarks fails when using beta std on stage 0
113+
"--build-std-on-stage0",
112114
])
113115
.env("RUST_BACKTRACE", "full");
114116
Self { cmd, metrics_path }
@@ -117,6 +119,10 @@ impl Bootstrap {
117119
pub fn dist(env: &Environment, dist_args: &[String]) -> Self {
118120
let metrics_path = env.build_root().join("build").join("metrics.json");
119121
let cmd = cmd(&dist_args.iter().map(|arg| arg.as_str()).collect::<Vec<_>>())
122+
// In this command we have `--keep-stage 0 --keep-stage 1` flags. Since we used
123+
// `--build-std-on-stage0` in the previous bootstrap invocation (in `fn build`)
124+
// we need to include it again.
125+
.arg("--build-std-on-stage0")
120126
.env("RUST_BACKTRACE", "full");
121127
Self { cmd, metrics_path }
122128
}

0 commit comments

Comments
 (0)