fn main() {
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rerun-if-env-changed=CARGO_FEATURE_PYTHON");
if std::env::var_os("CARGO_FEATURE_PYTHON").is_some() {
pyo3_build_config::add_extension_module_link_args();
}
// Expose the build's target triple at runtime so `zccache symbols install`
// can construct the matching GitHub Release asset URL without asking the
// user to type it. `TARGET` is set by cargo for build scripts.
let target = std::env::var("TARGET").expect("cargo sets TARGET for build scripts");
println!("cargo:rustc-env=ZCCACHE_BUILD_TARGET={target}");
}