| 1 | fn main() { |
| 2 | let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default(); |
| 3 | if matches!(target_os.as_str(), "ios" | "tvos" | "visionos") { |
| 4 | cc::Build::new() |
| 5 | .file("scripts/tvos_chkstk.s") |
| 6 | .compile("tvos_chkstk"); |
| 7 | println!("cargo:rerun-if-changed=scripts/tvos_chkstk.s"); |
| 8 | } |
| 9 | } |