From 685c316bd907281c3a5aa76d9faa128488bf222e Mon Sep 17 00:00:00 2001 From: Eugene Hauptmann Date: Thu, 6 Jun 2024 16:16:35 -0400 Subject: [PATCH] include sim in the target --- build.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.rs b/build.rs index 292c2e3..f48783e 100644 --- a/build.rs +++ b/build.rs @@ -135,11 +135,11 @@ fn build(sdk_path: Option<&str>, target: &str) { // See https://github.com/rust-lang/rust-bindgen/issues/1211 // Technically according to the llvm mailing list, the argument to clang here should be // -arch arm64 but it looks cleaner to just change the target. - let target = if target == "aarch64-apple-ios" { + let target = if target.starts_with("aarch64-apple-ios") { "arm64-apple-ios" - } else if target == "aarch64-apple-visionos" { + } else if target.starts_with("aarch64-apple-visionos") { "arm64-apple-xros" - } else if target == "aarch64-apple-darwin" { + } else if target.starts_with("aarch64-apple-darwin") { "arm64-apple-darwin" } else { target