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

Function get_nasm_version

configure.py:1379–1394  ·  view source on GitHub ↗
(asm)

Source from the content-addressed store, hash-verified

1377 return match.group(2) if match else '0.0'
1378
1379def get_nasm_version(asm):
1380 try:
1381 proc = subprocess.Popen(shlex.split(asm) + ['-v'],
1382 stdin=subprocess.PIPE, stderr=subprocess.PIPE,
1383 stdout=subprocess.PIPE)
1384 except OSError:
1385 warn('''No acceptable ASM compiler found!
1386 Please make sure you have installed NASM from https://www.nasm.us
1387 and refer BUILDING.md.''')
1388 return '0.0'
1389
1390 with proc:
1391 match = re.match(r"NASM version ([2-9]\.[0-9][0-9]+)",
1392 to_utf8(proc.communicate()[0]))
1393
1394 return match.group(1) if match else '0.0'
1395
1396def get_llvm_version(cc):
1397 return get_version_helper(

Callers 1

check_compilerFunction · 0.85

Calls 4

to_utf8Function · 0.85
warnFunction · 0.70
matchMethod · 0.65
splitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…