()
| 20 | |
| 21 | |
| 22 | def 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 | |
| 36 | def find_armasm64(): |
no test coverage detected
searching dependent graphs…