Skip to content

Commit cb32870

Browse files
committed
Add ios simulators and tvos aarch64 simulator
1 parent 1b4d20e commit cb32870

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

rust_build_utils/rust_utils_config.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,30 @@
132132
"pre_build": ["rust_build_utils.darwin_build_utils.set_sdk"],
133133
"post_build": ["rust_build_utils.darwin_build_utils.assert_version"],
134134
},
135+
"ios-sim": {
136+
"archs": {
137+
"aarch64": {
138+
"rust_target": "aarch64-apple-ios-sim",
139+
"deployment_assert": ("LC_VERSION_MIN_IPHONEOS", "version", "10.0"),
140+
"env": {
141+
"IPHONEOS_DEPLOYMENT_TARGET": (["10.0"], "set"),
142+
},
143+
},
144+
"x86_64": {
145+
"rust_target": "x86_64-apple-ios",
146+
"deployment_assert": ("LC_VERSION_MIN_IPHONEOS", "version", "10.0"),
147+
"env": {
148+
"IPHONEOS_DEPLOYMENT_TARGET": (["10.0"], "set"),
149+
},
150+
},
151+
},
152+
"env": {
153+
"CARGO_PROFILE_RELEASE_SPLIT_DEBUGINFO": (["packed"], "set"),
154+
"CARGO_PROFILE_RELEASE_STRIP": (["true"], "set"),
155+
},
156+
"pre_build": ["rust_build_utils.darwin_build_utils.set_sdk"],
157+
"post_build": ["rust_build_utils.darwin_build_utils.assert_version"],
158+
},
135159
"tvos": {
136160
"archs": {
137161
"aarch64": {
@@ -151,6 +175,13 @@
151175
},
152176
"tvos-sim": {
153177
"archs": {
178+
"aarch64": {
179+
"rust_target": "aarch64-apple-tvos-sim",
180+
"deployment_assert": ("LC_VERSION_MIN_TVOS", "version", "10.0"),
181+
"env": {
182+
"TVOS_DEPLOYMENT_TARGET": (["10.0"], "set"),
183+
},
184+
},
154185
"x86_64": {
155186
"rust_target": "x86_64-apple-tvos",
156187
"deployment_assert": ("LC_VERSION_MIN_TVOS", "version", "10.0"),

0 commit comments

Comments
 (0)