Skip to content

Commit

Permalink
include sim in the target
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenehp committed Jun 6, 2024
1 parent b91dbb5 commit 685c316
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 685c316

Please sign in to comment.