mirror of
https://github.com/forkless/NotAlterra.git
synced 2026-08-20 10:03:35 +02:00
Guard resource link for Windows target only
This commit is contained in:
@@ -19,6 +19,10 @@ fn main() {
|
||||
};
|
||||
|
||||
if compiled() {
|
||||
println!("cargo:rustc-link-arg={}", res_path);
|
||||
// Only link the resource on Windows targets
|
||||
let target = std::env::var("TARGET").unwrap_or_default();
|
||||
if target.contains("windows") {
|
||||
println!("cargo:rustc-link-arg={}", res_path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user