MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / is_arm64

Function is_arm64

win/build-all-win.py:15–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14
15def 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
23assert Path.cwd() == Path(__file__).parent, "Run this script from the 'win' directory."
24

Callers 2

build-all-win.pyFile · 0.85
buildFunction · 0.85

Calls 2

lowerMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected