Skip to content

Commit d079df9

Browse files
Add debugging
1 parent da9b795 commit d079df9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Tools/jit/_llvm.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,18 +72,25 @@ async def _get_brew_llvm_prefix(llvm_version: str, *, echo: bool = False) -> str
7272

7373
@_async_cache
7474
async def _find_tool(tool: str, llvm_version: str, *, echo: bool = False) -> str | None:
75+
print(f"DEBUG: Searching for {tool} (LLVM {llvm_version})")
7576
# Unversioned executables:
7677
path = tool
78+
print(f"DEBUG: Trying unversioned: {path}")
7779
if await _check_tool_version(path, llvm_version, echo=echo):
80+
print(f"DEBUG: Found at: {path}")
7881
return path
7982
# Versioned executables:
8083
path = f"{tool}-{llvm_version}"
84+
print(f"DEBUG: Trying versioned: {path}")
8185
if await _check_tool_version(path, llvm_version, echo=echo):
86+
print(f"DEBUG: Found at: {path}")
8287
return path
8388
# PCbuild externals:
8489
externals = os.environ.get("EXTERNALS_DIR", _targets.EXTERNALS)
8590
path = os.path.join(externals, _EXTERNALS_LLVM_TAG, "bin", tool)
91+
print(f"DEBUG: Trying PCbuild externals: {path} (exists: {os.path.exists(path)})")
8692
if await _check_tool_version(path, llvm_version, echo=echo):
93+
print(f"DEBUG: Found at: {path}")
8794
return path
8895
# Homebrew-installed executables:
8996
prefix = await _get_brew_llvm_prefix(llvm_version, echo=echo)

0 commit comments

Comments
 (0)