Skip to content

Commit d0eb47a

Browse files
committed
moved sanity command to exec context
1 parent 354500f commit d0eb47a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/bootstrap/src/core/sanity.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,11 @@ than building it.
361361
// There are three builds of cmake on windows: MSVC, MinGW, and
362362
// Cygwin. The Cygwin build does not have generators for Visual
363363
// Studio, so detect that here and error.
364-
let out =
365-
command("cmake").arg("--help").run_always().run_capture_stdout(build).stdout();
364+
let out = command("cmake")
365+
.arg("--help")
366+
.run_always()
367+
.run_capture_stdout_exec_ctx(&build)
368+
.stdout();
366369
if !out.contains("Visual Studio") {
367370
panic!(
368371
"

0 commit comments

Comments
 (0)