MCPcopy Index your code
hub / github.com/nodejs/node / find_armasm64

Function find_armasm64

deps/libffi/preprocess_asm.py:36–53  ·  view source on GitHub ↗

Find armasm64.exe in the PATH or common Visual Studio locations.

()

Source from the content-addressed store, hash-verified

34
35
36def 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
56def normalize_path(value):

Callers 1

preprocessFunction · 0.85

Calls 3

getMethod · 0.65
joinMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…