We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cda115a commit ae68934Copy full SHA for ae68934
src/lib.rs
@@ -1468,6 +1468,20 @@ impl Build {
1468
cmd.args
1469
.push(format!("--target={}-apple-{}-macabi", arch, ios).into());
1470
}
1471
+ } else if target.contains("ios-sim") {
1472
+ if let Some(arch) =
1473
+ map_darwin_target_from_rust_to_compiler_architecture(target)
1474
+ {
1475
+ let deployment_target = env::var("IPHONEOS_DEPLOYMENT_TARGET")
1476
+ .unwrap_or_else(|_| "7.0".into());
1477
+ cmd.args.push(
1478
+ format!(
1479
+ "--target={}-apple-ios{}-simulator",
1480
+ arch, deployment_target
1481
+ )
1482
+ .into(),
1483
+ );
1484
+ }
1485
} else {
1486
cmd.args.push(format!("--target={}", target).into());
1487
0 commit comments