1 2 3 4 5
fn main() { if std::env::var("CARGO_CFG_TARGET_OS").unwrap() == "macos" { println!("cargo:rustc-link-lib=framework=Accelerate"); } }