Return the Apple platform identifier for a given host triple.
(host: str)
| 273 | |
| 274 | |
| 275 | def apple_target(host: str) -> str: |
| 276 | """Return the Apple platform identifier for a given host triple.""" |
| 277 | for _, platform_slices in HOSTS.items(): |
| 278 | for slice_name, slice_parts in platform_slices.items(): |
| 279 | for host_triple, multiarch in slice_parts.items(): |
| 280 | if host == host_triple: |
| 281 | return ".".join(multiarch.split("-")[::-1]) |
| 282 | |
| 283 | raise KeyError(host) |
| 284 | |
| 285 | |
| 286 | def apple_multiarch(host: str) -> str: |
no test coverage detected
searching dependent graphs…