Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Search for LLVM tools in ``LLVM_TOOLS_INSTALL_DIR`` during the build.
5 changes: 5 additions & 0 deletions Tools/jit/_llvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ async def _get_brew_llvm_prefix(*, echo: bool = False) -> str | None:

@_async_cache
async def _find_tool(tool: str, *, echo: bool = False) -> str | None:
# Explicitly defined LLVM installation location
if llvm_tools_dir := os.getenv("LLVM_TOOLS_INSTALL_DIR"):
path = os.path.join(llvm_tools_dir, tool)
if await _check_tool_version(path, echo=echo):
return path
# Unversioned executables:
path = tool
if await _check_tool_version(path, echo=echo):
Expand Down
Loading