Skip to content

Commit

Permalink
Add ios simulators and tvos aarch64 simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
matislovas committed Dec 23, 2024
1 parent 1b4d20e commit cb32870
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions rust_build_utils/rust_utils_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,30 @@
"pre_build": ["rust_build_utils.darwin_build_utils.set_sdk"],
"post_build": ["rust_build_utils.darwin_build_utils.assert_version"],
},
"ios-sim": {
"archs": {
"aarch64": {
"rust_target": "aarch64-apple-ios-sim",
"deployment_assert": ("LC_VERSION_MIN_IPHONEOS", "version", "10.0"),
"env": {
"IPHONEOS_DEPLOYMENT_TARGET": (["10.0"], "set"),
},
},
"x86_64": {
"rust_target": "x86_64-apple-ios",
"deployment_assert": ("LC_VERSION_MIN_IPHONEOS", "version", "10.0"),
"env": {
"IPHONEOS_DEPLOYMENT_TARGET": (["10.0"], "set"),
},
},
},
"env": {
"CARGO_PROFILE_RELEASE_SPLIT_DEBUGINFO": (["packed"], "set"),
"CARGO_PROFILE_RELEASE_STRIP": (["true"], "set"),
},
"pre_build": ["rust_build_utils.darwin_build_utils.set_sdk"],
"post_build": ["rust_build_utils.darwin_build_utils.assert_version"],
},
"tvos": {
"archs": {
"aarch64": {
Expand All @@ -151,6 +175,13 @@
},
"tvos-sim": {
"archs": {
"aarch64": {
"rust_target": "aarch64-apple-tvos-sim",
"deployment_assert": ("LC_VERSION_MIN_TVOS", "version", "10.0"),
"env": {
"TVOS_DEPLOYMENT_TARGET": (["10.0"], "set"),
},
},
"x86_64": {
"rust_target": "x86_64-apple-tvos",
"deployment_assert": ("LC_VERSION_MIN_TVOS", "version", "10.0"),
Expand Down

0 comments on commit cb32870

Please sign in to comment.