/// Build script: expose the compilation target triple to the crate.
///
/// Cargo sets the `TARGET` environment variable for build scripts but not for
/// the crate itself, so we forward it via `cargo:rustc-env` and read it back
/// with `env!("BUILD_TARGET")` (e.g. `x86_64-pc-windows-gnu`).