fix build error on windows (#741)
This commit is contained in:
parent
01f9907aaf
commit
dfa57c890d
1 changed files with 7 additions and 1 deletions
8
build.rs
8
build.rs
|
@ -1,7 +1,13 @@
|
||||||
use std::{
|
use std::{
|
||||||
os::unix::process::ExitStatusExt,
|
|
||||||
process::{Command, ExitStatus, Output},
|
process::{Command, ExitStatus, Output},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#[cfg(not(target_os = "windows"))]
|
||||||
|
use std::os::unix::process::ExitStatusExt;
|
||||||
|
|
||||||
|
#[cfg(target_os = "windows")]
|
||||||
|
use std::os::windows::process::ExitStatusExt;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let output = String::from_utf8(
|
let output = String::from_utf8(
|
||||||
Command::new("git")
|
Command::new("git")
|
||||||
|
|
Loading…
Reference in a new issue