()
| 41 | |
| 42 | @staticmethod |
| 43 | def host() -> "Arch": |
| 44 | if platform.machine() == "x86_64": |
| 45 | return Arch.X86_64 |
| 46 | elif platform.machine() in ["aarch64", "arm64"]: |
| 47 | return Arch.AARCH64 |
| 48 | else: |
| 49 | raise RuntimeError(f"unknown host architecture {platform.machine()}") |
| 50 | |
| 51 | |
| 52 | def target(arch: Arch) -> str: |
no outgoing calls