//! Build script for jouleclaw-loader-gguf. //! //! Conditionally links Apple Accelerate.framework when the //! `accelerate` cargo feature is enabled and we're targeting //! macOS. No-op on every other target / feature flag. fn main() { let accelerate = std::env::var("CARGO_FEATURE_ACCELERATE").is_ok(); let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default(); if accelerate && target_os == "macos" { println!("cargo:rustc-link-lib=framework=Accelerate"); } }