build(tools): allow LLVM from the system #15805

Merged
oberonlift merged 1 commit from upstream-pr/15805 into main 2026-11-12 03:29:26 +00:00
oberonlift commented 2026-11-04 16:24:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oberonlift on 2026-11-04T16:24:12Z.


Can merge at any time, as long as it is before #15806.

ps5lift is a static recompiler for PS5 executables: it lifts a game's x86-64 code to LLVM IR and compiles it ahead of time to aarch64, which runs on Linux against AnyPS5's own libraries with no interpreter or JIT. It runs AnyPS5's PS5-style test programs and a homebrew media player to its home screen; commercial games are not playable yet. Branch ps5lift-preview merges all of its PRs (how to try it); native Apple Silicon support is coming along fast. It is a separate approach from the ARM64 compiler in #5021; #1835 has an introduction.

ps5lift's lifter builds against LLVM from the system, and the convention check reports find_package(LLVM) as third-party code that is not a submodule. This lets the lifter's PR, which follows, pass the check.

What

The convention check accepts find_package(LLVM) as it accepts Python3, Threads and Git.

Tested

tools/tests/test_check_conventions_comments.py passes, with a new case for find_package(LLVM REQUIRED CONFIG). The convention check passes on this PR, and on the lifter's branch when it runs this PR's script.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5157738073 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15805). Originally posted by [oberonlift](https://github.com/oberonlift) on 2026-11-04T16:24:12Z. --- **Can merge at any time**, as long as it is before #15806. **ps5lift** is a static recompiler for PS5 executables: it lifts a game's x86-64 code to LLVM IR and compiles it ahead of time to aarch64, which runs on Linux against AnyPS5's own libraries with no interpreter or JIT. It runs AnyPS5's PS5-style test programs and a homebrew media player to its home screen; commercial games are not playable yet. Branch [`ps5lift-preview`](https://github.com/oberonlift/AnyPS5/tree/ps5lift-preview) merges all of its PRs ([how to try it](https://github.com/oberonlift/AnyPS5/blob/ps5lift-preview/PS5LIFT_PREVIEW.md)); native Apple Silicon support is coming along fast. It is a separate approach from the ARM64 compiler in #5021; #1835 has an introduction. ps5lift's lifter builds against LLVM from the system, and the convention check reports `find_package(LLVM)` as third-party code that is not a submodule. This lets the lifter's PR, which follows, pass the check. ### What The convention check accepts `find_package(LLVM)` as it accepts `Python3`, `Threads` and `Git`. ### Tested `tools/tests/test_check_conventions_comments.py` passes, with a new case for `find_package(LLVM REQUIRED CONFIG)`. The convention check passes on this PR, and on the lifter's branch when it runs this PR's script. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!15805
No description provided.