File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ mod header_binding {
23
23
let target = std:: env:: var ( "TARGET" ) . unwrap ( ) ;
24
24
let platform = if target. contains ( "apple-darwin" ) {
25
25
"macosx"
26
- } else if target == "x86_64-apple-ios" {
26
+ } else if target == "x86_64-apple-ios" || target == "aarch64-apple-ios-sim" {
27
27
"iphonesimulator"
28
28
} else if target == "aarch64-apple-ios" {
29
29
"iphoneos"
@@ -214,7 +214,11 @@ mod header_binding {
214
214
// Workaround for https://github.com/rust-lang/rust-bindgen/issues/1211: manually set
215
215
// target triple to `arm64-apple-ios` in place of `aarch64-apple-ios`.
216
216
if target_arch == "aarch64" && target_os == "ios" {
217
- builder = builder. clang_arg ( "--target=arm64-apple-ios" ) ;
217
+ if target_env == "sim" {
218
+ builder = builder. clang_arg ( "--target=arm64-apple-ios-sim" ) ;
219
+ } else {
220
+ builder = builder. clang_arg ( "--target=arm64-apple-ios" ) ;
221
+ }
218
222
}
219
223
220
224
// Workaround: Microsoft extensions aren't enabled by default for the `gnu` toolchain
You can’t perform that action at this time.
0 commit comments