about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbit-aloo <sshourya17@gmail.com>2025-06-06 22:19:31 +0530
committerbit-aloo <sshourya17@gmail.com>2025-06-09 20:38:12 +0530
commit81abbe1f12e417275aa96ad1deb146d20e1b673d (patch)
tree0932713e047e166e486ce5acb42412da498aa18a
parent8bd81699d977657e9571758e413e7cf1595626d4 (diff)
downloadrust-81abbe1f12e417275aa96ad1deb146d20e1b673d.tar.gz
rust-81abbe1f12e417275aa96ad1deb146d20e1b673d.zip
moved sanity command to exec context
-rw-r--r--src/bootstrap/src/core/sanity.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bootstrap/src/core/sanity.rs b/src/bootstrap/src/core/sanity.rs
index af4ec679d08..4ef9316d00b 100644
--- a/src/bootstrap/src/core/sanity.rs
+++ b/src/bootstrap/src/core/sanity.rs
@@ -361,8 +361,11 @@ than building it.
             // There are three builds of cmake on windows: MSVC, MinGW, and
             // Cygwin. The Cygwin build does not have generators for Visual
             // Studio, so detect that here and error.
-            let out =
-                command("cmake").arg("--help").run_always().run_capture_stdout(build).stdout();
+            let out = command("cmake")
+                .arg("--help")
+                .run_always()
+                .run_capture_stdout_exec_ctx(&build)
+                .stdout();
             if !out.contains("Visual Studio") {
                 panic!(
                     "