diff options
-rw-r--r-- | mesonbuild/mesonlib/vsenv.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mesonbuild/mesonlib/vsenv.py b/mesonbuild/mesonlib/vsenv.py index fd1ca15..0d69d9a 100644 --- a/mesonbuild/mesonlib/vsenv.py +++ b/mesonbuild/mesonlib/vsenv.py @@ -2,6 +2,7 @@ import os import subprocess import json import pathlib +import platform import shutil import tempfile @@ -66,7 +67,10 @@ def _setup_vsenv(force: bool) -> bool: # VS installer instelled but not VS itself maybe? raise MesonException(f'Could not parse vswhere.exe output') bat_root = pathlib.Path(bat_info[0]['installationPath']) - bat_path = bat_root / 'VC/Auxiliary/Build/vcvars64.bat' + if platform.machine() == 'ARM64': + bat_path = bat_root / 'VC/Auxiliary/Build/vcvarsx86_arm64.bat' + else: + bat_path = bat_root / 'VC/Auxiliary/Build/vcvars64.bat' if not bat_path.exists(): raise MesonException(f'Could not find {bat_path}') |