Skip to content

Commit

Permalink
Make build.rs cross-platform
Browse files Browse the repository at this point in the history
  • Loading branch information
FaceFTW committed Jan 13, 2024
1 parent be800f0 commit 70e48b7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use std::io;

#[cfg(target_os = "windows")]
fn main() -> io::Result<()> {
if cfg!(target_os = "windows") && !cfg!(test) {
let mut res = winres::WindowsResource::new();
Expand All @@ -10,3 +11,8 @@ fn main() -> io::Result<()> {

Ok(())
}

#[cfg(not(target_os = "windows"))]
fn main() -> io::Result<()> {
Ok(())
}

0 comments on commit 70e48b7

Please sign in to comment.