moved sanity command to exec context

This commit is contained in:
bit-aloo 2025-06-06 22:19:31 +05:30
parent 8bd81699d9
commit 81abbe1f12
No known key found for this signature in database

View file

@ -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!(
"