What's new: https://docs.python.org/3/whatsnew/3.13.html Most notably, introduce free-threaded mode. As this mode changes the ABI, the entire distribution lives in a separate hierarchy, and thus a new child port (lang/python313t) and FLAVOR (py313t) are introduced. Co-authored-by: vishwin PR: 274671 Differential Revision: https://reviews.freebsd.org/D49680
32 lines
1.2 KiB
Python
32 lines
1.2 KiB
Python
--- Tools/jit/_llvm.py.orig 2025-06-11 15:36:57 UTC
|
|
+++ Tools/jit/_llvm.py
|
|
@@ -68,20 +68,7 @@ async def _find_tool(tool: str, *, echo: bool = False)
|
|
async def _find_tool(tool: str, *, echo: bool = False) -> str | None:
|
|
# Unversioned executables:
|
|
path = tool
|
|
- if await _check_tool_version(path, echo=echo):
|
|
- return path
|
|
- # Versioned executables:
|
|
- path = f"{tool}-{_LLVM_VERSION}"
|
|
- if await _check_tool_version(path, echo=echo):
|
|
- return path
|
|
- # Homebrew-installed executables:
|
|
- prefix = await _get_brew_llvm_prefix(echo=echo)
|
|
- if prefix is not None:
|
|
- path = os.path.join(prefix, "bin", tool)
|
|
- if await _check_tool_version(path, echo=echo):
|
|
- return path
|
|
- # Nothing found:
|
|
- return None
|
|
+ return path
|
|
|
|
|
|
async def maybe_run(
|
|
@@ -96,5 +83,5 @@ async def run(tool: str, args: typing.Iterable[str], e
|
|
"""Run an LLVM tool if it can be found. Otherwise, raise RuntimeError."""
|
|
output = await maybe_run(tool, args, echo=echo)
|
|
if output is None:
|
|
- raise RuntimeError(f"Can't find {tool}-{_LLVM_VERSION}!")
|
|
+ raise RuntimeError(f"Can't find {tool}!")
|
|
return output
|