Determine the native simulator target for this platform.
(platform_name: str)
| 854 | |
| 855 | |
| 856 | def apple_sim_host(platform_name: str) -> str: |
| 857 | """Determine the native simulator target for this platform.""" |
| 858 | for _, slice_parts in HOSTS[platform_name].items(): |
| 859 | for host_triple in slice_parts: |
| 860 | parts = host_triple.split("-") |
| 861 | if parts[0] == platform.machine() and parts[-1] == "simulator": |
| 862 | return host_triple |
| 863 | |
| 864 | raise KeyError(platform_name) |
| 865 | |
| 866 | |
| 867 | def ci(context: argparse.Namespace) -> None: |