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

Function find_compiler

deps/libffi/preprocess_asm.py:22–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21
22def find_compiler():
23 for var in ('CC', 'CXX'):
24 command = split_command(os.environ.get(var))
25 if command and shutil.which(command[0]):
26 return command
27
28 for name in ('cl.exe', 'cl', 'clang-cl.exe', 'clang-cl', 'cc', 'clang', 'gcc'):
29 path = shutil.which(name)
30 if path:
31 return [path]
32
33 raise RuntimeError('Unable to locate a compiler for preprocessing assembly')
34
35
36def find_armasm64():

Callers 1

preprocessFunction · 0.85

Calls 2

split_commandFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…