Run an LLVM tool if it can be found. Otherwise, return None.
(
tool: str,
args: typing.Iterable[str],
echo: bool = False,
llvm_version: str = _LLVM_VERSION,
)
| 110 | |
| 111 | |
| 112 | async def maybe_run( |
| 113 | tool: str, |
| 114 | args: typing.Iterable[str], |
| 115 | echo: bool = False, |
| 116 | llvm_version: str = _LLVM_VERSION, |
| 117 | ) -> str | None: |
| 118 | """Run an LLVM tool if it can be found. Otherwise, return None.""" |
| 119 | |
| 120 | path = await _find_tool(tool, llvm_version, echo=echo) |
| 121 | return path and await _run(path, args, echo=echo) |
| 122 | |
| 123 | |
| 124 | async def run( |
no test coverage detected
searching dependent graphs…