From dfa57c890df0ef0b620294e2126714887c2605fa Mon Sep 17 00:00:00 2001 From: o69mar <119129086+o69mar@users.noreply.github.com> Date: Thu, 9 Mar 2023 07:32:41 +0300 Subject: [PATCH] fix build error on windows (#741) --- build.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 8700cce..3ee44a4 100644 --- a/build.rs +++ b/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")