Run an LLVM tool if it can be found. Otherwise, raise RuntimeError.
(
tool: str,
args: typing.Iterable[str],
echo: bool = False,
llvm_version: str = _LLVM_VERSION,
)
| 122 | |
| 123 | |
| 124 | async def run( |
| 125 | tool: str, |
| 126 | args: typing.Iterable[str], |
| 127 | echo: bool = False, |
| 128 | llvm_version: str = _LLVM_VERSION, |
| 129 | ) -> str: |
| 130 | """Run an LLVM tool if it can be found. Otherwise, raise RuntimeError.""" |
| 131 | |
| 132 | output = await maybe_run(tool, args, echo=echo, llvm_version=llvm_version) |
| 133 | if output is None: |
| 134 | raise RuntimeError(f"Can't find {tool}-{llvm_version}!") |
| 135 | return output |
nothing calls this directly
no test coverage detected