MCPcopy Index your code
hub / github.com/python/cpython / run

Function run

Tools/jit/_llvm.py:124–135  ·  view source on GitHub ↗

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,
)

Source from the content-addressed store, hash-verified

122
123
124async 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

Callers

nothing calls this directly

Calls 1

maybe_runFunction · 0.85

Tested by

no test coverage detected