replace output usage in sanity with new execution context

This commit is contained in:
bit-aloo 2025-06-13 18:29:48 +05:30
parent 015c7770ec
commit da0cceebf0
No known key found for this signature in database

View file

@ -200,12 +200,14 @@ than building it.
.map(|p| cmd_finder.must_have(p))
.or_else(|| cmd_finder.maybe_have("reuse"));
let stage0_supported_target_list: HashSet<String> = crate::utils::helpers::output(
command(&build.config.initial_rustc).args(["--print", "target-list"]).as_command_mut(),
)
.lines()
.map(|s| s.to_string())
.collect();
let stage0_supported_target_list: HashSet<String> = command(&build.config.initial_rustc)
.args(["--print", "target-list"])
.run_always()
.run_capture_stdout(&build)
.stdout()
.lines()
.map(|s| s.to_string())
.collect();
// Compiler tools like `cc` and `ar` are not configured for cross-targets on certain subcommands
// because they are not needed.