Merge pull request #1696 from docwilco/docwilco/fix-spawn-windows-debugging

fix(cli): make debugging in windows work
This commit is contained in:
liv 2023-09-28 11:03:08 +02:00 committed by GitHub
commit 3bfd857a27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -396,6 +396,8 @@ fn rustc_exists() -> bool {
Command::new("rustc")
.args(["--version"])
.stdout(Stdio::null())
.stderr(Stdio::null())
.stdin(Stdio::null())
.spawn()
.and_then(|mut child| child.wait())
.map(|status| status.success())