فهرست منبع

fix build error on windows (#741)

o69mar 2 سال پیش
والد
کامیت
dfa57c890d
1فایلهای تغییر یافته به همراه7 افزوده شده و 1 حذف شده
  1. 7 1
      build.rs

+ 7 - 1
build.rs

@@ -1,7 +1,13 @@
 use std::{
-	os::unix::process::ExitStatusExt,
 	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() {
 	let output = String::from_utf8(
 		Command::new("git")