(asm)
| 1377 | return match.group(2) if match else '0.0' |
| 1378 | |
| 1379 | def 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 | |
| 1396 | def get_llvm_version(cc): |
| 1397 | return get_version_helper( |
no test coverage detected
searching dependent graphs…