diff options
| author | bit-aloo <sshourya17@gmail.com> | 2025-06-13 18:29:48 +0530 |
|---|---|---|
| committer | bit-aloo <sshourya17@gmail.com> | 2025-06-13 18:29:48 +0530 |
| commit | da0cceebf0417589ae15f30fd499221ef600064b (patch) | |
| tree | bc3d9824fbd72e403f787daf7c37b6a45e70e2f3 | |
| parent | 015c7770ec0ffdba9ff03f1861144a827497f8ca (diff) | |
| download | rust-da0cceebf0417589ae15f30fd499221ef600064b.tar.gz rust-da0cceebf0417589ae15f30fd499221ef600064b.zip | |
replace output usage in sanity with new execution context
| -rw-r--r-- | src/bootstrap/src/core/sanity.rs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/bootstrap/src/core/sanity.rs b/src/bootstrap/src/core/sanity.rs index ef776e21943..493f73b21fe 100644 --- a/src/bootstrap/src/core/sanity.rs +++ b/src/bootstrap/src/core/sanity.rs @@ -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. |
