Skip to content

Commit 92616cf

Browse files
committed
Use LLVM_TOOLS_INSTALL_DIR to search for LLVM tools
1 parent fb6867f commit 92616cf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Search for LLVM tools in ``LLVM_ROOT`` during the build.
1+
Search for LLVM tools in ``LLVM_TOOLS_INSTALL_DIR`` during the build.

Tools/jit/_llvm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ async def _get_brew_llvm_prefix(llvm_version: str, *, echo: bool = False) -> str
7373
@_async_cache
7474
async def _find_tool(tool: str, llvm_version: str, *, echo: bool = False) -> str | None:
7575
# Explicitly defined LLVM installation location
76-
if (llvm_root := os.getenv("LLVM_ROOT")) is not None:
77-
path = os.path.join(llvm_root, "bin", tool)
76+
if (llvm_tools_dir := os.getenv("LLVM_TOOLS_INSTALL_DIR")) is not None:
77+
path = os.path.join(llvm_tools_dir, tool)
7878
if await _check_tool_version(path, llvm_version, echo=echo):
7979
return path
8080
# Unversioned executables:

0 commit comments

Comments
 (0)