Skip to content

Commit 859bfbd

Browse files
committed
Use LLVM_TOOLS_INSTALL_DIR to search for LLVM tools
1 parent 0bd8352 commit 859bfbd

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
@@ -70,8 +70,8 @@ async def _get_brew_llvm_prefix(*, echo: bool = False) -> str | None:
7070
@_async_cache
7171
async def _find_tool(tool: str, *, echo: bool = False) -> str | None:
7272
# Explicitly defined LLVM installation location
73-
if (llvm_root := os.getenv("LLVM_ROOT")) is not None:
74-
path = os.path.join(llvm_root, "bin", tool)
73+
if (llvm_tools_dir := os.getenv("LLVM_TOOLS_INSTALL_DIR")) is not None:
74+
path = os.path.join(llvm_tools_dir, tool)
7575
if await _check_tool_version(path, echo=echo):
7676
return path
7777
# Unversioned executables:

0 commit comments

Comments
 (0)