Skip to content

Commit 39e1339

Browse files
Clean up after debugging
1 parent 2ca8603 commit 39e1339

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Tools/jit/_llvm.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,33 +72,23 @@ 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})")
7675
# Unversioned executables:
7776
path = tool
78-
print(f"DEBUG: Trying unversioned: {path}")
7977
if await _check_tool_version(path, llvm_version, echo=echo):
80-
print(f"DEBUG: Found at: {path}")
8178
return path
8279
# Versioned executables:
8380
path = f"{tool}-{llvm_version}"
84-
print(f"DEBUG: Trying versioned: {path}")
8581
if await _check_tool_version(path, llvm_version, echo=echo):
86-
print(f"DEBUG: Found at: {path}")
8782
return path
8883
# PCbuild externals:
8984
externals = os.environ.get("EXTERNALS_DIR", _targets.EXTERNALS)
9085
path = os.path.join(externals, _EXTERNALS_LLVM_TAG, "bin", tool)
91-
print(f"DEBUG: Trying PCbuild externals: {path} (exists: {os.path.exists(path)})")
9286
# On Windows, executables need .exe extension
9387
if os.name == "nt" and not path.endswith(".exe"):
9488
path_with_exe = path + ".exe"
95-
print(
96-
f"DEBUG: Also trying with .exe: {path_with_exe} (exists: {os.path.exists(path_with_exe)})"
97-
)
9889
if os.path.exists(path_with_exe):
9990
path = path_with_exe
10091
if await _check_tool_version(path, llvm_version, echo=echo):
101-
print(f"DEBUG: Found at: {path}")
10292
return path
10393
# Homebrew-installed executables:
10494
prefix = await _get_brew_llvm_prefix(llvm_version, echo=echo)

0 commit comments

Comments
 (0)