aboutsummaryrefslogtreecommitdiffhomepage
path: root/zluda_inject/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'zluda_inject/build.rs')
-rw-r--r--zluda_inject/build.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/zluda_inject/build.rs b/zluda_inject/build.rs
index ccce573..c79d2d2 100644
--- a/zluda_inject/build.rs
+++ b/zluda_inject/build.rs
@@ -7,6 +7,9 @@ use std::{
};
fn main() -> Result<(), VarError> {
+ if std::env::var_os("CARGO_CFG_WINDOWS").is_none() {
+ return Ok(());
+ }
println!("cargo:rerun-if-changed=build.rs");
if env::var("PROFILE")? != "debug" {
return Ok(());