Return all host triples for the given platform. The host triples are the platform definitions used as input to configure (e.g., "arm64-apple-ios-simulator").
(platform: str)
| 162 | |
| 163 | |
| 164 | def all_host_triples(platform: str) -> list[str]: |
| 165 | """Return all host triples for the given platform. |
| 166 | |
| 167 | The host triples are the platform definitions used as input to configure |
| 168 | (e.g., "arm64-apple-ios-simulator"). |
| 169 | """ |
| 170 | triples = [] |
| 171 | for slice_name, slice_parts in HOSTS[platform].items(): |
| 172 | triples.extend(list(slice_parts)) |
| 173 | return triples |
| 174 | |
| 175 | |
| 176 | def clean(context: argparse.Namespace, target: str | None = None) -> None: |