Skip to content

Commit da0ccee

Browse files
committed
replace output usage in sanity with new execution context
1 parent 015c777 commit da0ccee

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/bootstrap/src/core/sanity.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,14 @@ than building it.
200200
.map(|p| cmd_finder.must_have(p))
201201
.or_else(|| cmd_finder.maybe_have("reuse"));
202202

203-
let stage0_supported_target_list: HashSet<String> = crate::utils::helpers::output(
204-
command(&build.config.initial_rustc).args(["--print", "target-list"]).as_command_mut(),
205-
)
206-
.lines()
207-
.map(|s| s.to_string())
208-
.collect();
203+
let stage0_supported_target_list: HashSet<String> = command(&build.config.initial_rustc)
204+
.args(["--print", "target-list"])
205+
.run_always()
206+
.run_capture_stdout(&build)
207+
.stdout()
208+
.lines()
209+
.map(|s| s.to_string())
210+
.collect();
209211

210212
// Compiler tools like `cc` and `ar` are not configured for cross-targets on certain subcommands
211213
// because they are not needed.

0 commit comments

Comments
 (0)