MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / GetDefaultArch

Function GetDefaultArch

scripts/update_deps.py:781–790  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

779 dir=escape(repo.install_dir)))
780
781def GetDefaultArch():
782 machine = platform.machine().lower()
783 if machine == "arm64" or machine == "aarch64":
784 return 'arm64'
785 system = platform.system()
786 # vcvarsall.bat sets the Platform env-var, which CMake uses to determine the default build architecture
787 Platform_env_var = os.getenv('Platform')
788 if system == 'Windows' and Platform_env_var is not None:
789 return Platform_env_var
790 return '64'
791
792
793def main():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected