moved sanity command to exec context
This commit is contained in:
parent
8bd81699d9
commit
81abbe1f12
1 changed files with 5 additions and 2 deletions
|
|
@ -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!(
|
||||
"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue