We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 859bfbd commit 9492d92Copy full SHA for 9492d92
Tools/jit/_llvm.py
@@ -70,7 +70,7 @@ async def _get_brew_llvm_prefix(*, echo: bool = False) -> str | None:
70
@_async_cache
71
async def _find_tool(tool: str, *, echo: bool = False) -> str | None:
72
# Explicitly defined LLVM installation location
73
- if (llvm_tools_dir := os.getenv("LLVM_TOOLS_INSTALL_DIR")) is not None:
+ if llvm_tools_dir := os.getenv("LLVM_TOOLS_INSTALL_DIR")):
74
path = os.path.join(llvm_tools_dir, tool)
75
if await _check_tool_version(path, echo=echo):
76
return path
0 commit comments