Find armasm64.exe in the PATH or common Visual Studio locations.
()
| 34 | |
| 35 | |
| 36 | def find_armasm64(): |
| 37 | """Find armasm64.exe in the PATH or common Visual Studio locations.""" |
| 38 | # First check PATH |
| 39 | path = shutil.which('armasm64.exe') |
| 40 | if path: |
| 41 | return path |
| 42 | |
| 43 | # Check common VS locations via environment |
| 44 | vc_install_dir = os.environ.get('VCINSTALLDIR', '') |
| 45 | if vc_install_dir: |
| 46 | candidate = os.path.join(vc_install_dir, 'bin', 'Hostx64', 'arm64', 'armasm64.exe') |
| 47 | if os.path.exists(candidate): |
| 48 | return candidate |
| 49 | candidate = os.path.join(vc_install_dir, 'bin', 'Hostarm64', 'arm64', 'armasm64.exe') |
| 50 | if os.path.exists(candidate): |
| 51 | return candidate |
| 52 | |
| 53 | raise RuntimeError('Unable to locate armasm64.exe') |
| 54 | |
| 55 | |
| 56 | def normalize_path(value): |
no test coverage detected
searching dependent graphs…