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 92616cf commit 8a2d921Copy full SHA for 8a2d921
Tools/jit/_llvm.py
@@ -73,7 +73,7 @@ async def _get_brew_llvm_prefix(llvm_version: str, *, echo: bool = False) -> str
73
@_async_cache
74
async def _find_tool(tool: str, llvm_version: str, *, echo: bool = False) -> str | None:
75
# Explicitly defined LLVM installation location
76
- if (llvm_tools_dir := os.getenv("LLVM_TOOLS_INSTALL_DIR")) is not None:
+ if llvm_tools_dir := os.getenv("LLVM_TOOLS_INSTALL_DIR")):
77
path = os.path.join(llvm_tools_dir, tool)
78
if await _check_tool_version(path, llvm_version, echo=echo):
79
return path
0 commit comments