()
| 13 | |
| 14 | |
| 15 | def is_arm64() -> bool: |
| 16 | arch = os.environ.get("TARGET_ARCH", "").lower() |
| 17 | if arch in ("arm64", "aarch64"): |
| 18 | return True |
| 19 | if arch in ("x64", "amd64", "x86_64"): |
| 20 | return False |
| 21 | return platform.machine().lower() in ("arm64", "aarch64") |
| 22 | |
| 23 | assert Path.cwd() == Path(__file__).parent, "Run this script from the 'win' directory." |
| 24 |
no test coverage detected