replace output usage in sanity with new execution context
This commit is contained in:
parent
015c7770ec
commit
da0cceebf0
1 changed files with 8 additions and 6 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue