MCPcopy Index your code
hub / github.com/python/cpython / apple_sim_host

Function apple_sim_host

Platforms/Apple/__main__.py:856–864  ·  view source on GitHub ↗

Determine the native simulator target for this platform.

(platform_name: str)

Source from the content-addressed store, hash-verified

854
855
856def 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
867def ci(context: argparse.Namespace) -> None:

Callers 1

ciFunction · 0.85

Calls 2

itemsMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…