blob: f6ba3ec3ffb77f00ebc44f21cf0777376e4f0e58 [file] [log] [blame]
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 != "aarch64" || env != "gnu" || !target.ends_with("-gnullvm") {
return;
}
let dir = std::env::var("CARGO_MANIFEST_DIR").unwrap();
println!("cargo:rustc-link-search=native={}", std::path::Path::new(&dir).join("lib").display());
}