()
| 779 | dir=escape(repo.install_dir))) |
| 780 | |
| 781 | def 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 | |
| 793 | def main(): |