pve-lxc-syscalld/vendor/windows_x86_64_gnu/build.rs
Andrew A. Vasilyev a6268455b9 cargo vendor
2024-02-29 18:27:23 +03:00

14 lines
538 B
Rust

fn main() {
let family = std::env::var("CARGO_CFG_TARGET_FAMILY").unwrap();
let arch = std::env::var("CARGO_CFG_TARGET_ARCH").unwrap();
let env = std::env::var("CARGO_CFG_TARGET_ENV").unwrap();
let target = std::env::var("TARGET").unwrap();
if family != "windows" || arch != "x86_64" || env != "gnu" || !target.ends_with("-gnu") {
return;
}
let dir = std::env::var("CARGO_MANIFEST_DIR").unwrap();
println!("cargo:rustc-link-search=native={}", std::path::Path::new(&dir).join("lib").display());
}