diff --git a/build.rs b/build.rs index b5eecd2..19416ce 100644 --- a/build.rs +++ b/build.rs @@ -1,12 +1,12 @@ -#[cfg(windows)] +#[cfg(target_os = "windows")] extern crate winres; -#[cfg(windows)] +#[cfg(target_os = "windows")] fn main() { let mut res = winres::WindowsResource::new(); res.set_icon("icon.ico"); res.compile().unwrap(); } -#[cfg(unix)] +#[cfg(not(target_os = "windows"))] fn main() {}