Files

11 lines
412 B
Rust

//! Build script for `sqlshape`.
fn main() {
let target_family = std::env::var("CARGO_CFG_TARGET_FAMILY").unwrap_or_default();
let target = std::env::var("TARGET").unwrap_or_default();
if target_family.split(',').any(|family| family == "windows") || target.contains("windows") {
println!("cargo:rustc-link-lib=Rstrtmgr");
println!("cargo:rustc-link-arg-tests=Rstrtmgr.lib");
}
}