build(relinker): add a dependency-free conversion build mode #1432
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1432"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by ToyuAU on 2026-10-08T05:55:39Z.
What
Building the relinker currently configures SDL, FFmpeg, FreeType, Vulkan and the shader recompiler even when only executable conversion is needed. A checkout without initialized submodules cannot configure, and the unconditional GCC static-link flags prevent linking with AppleClang.
Add
ANYPS5_RELINKER_ONLY=ON(default OFF). It configures only the standard-library relinker and its existing tests, before any third-party dependency is configured. Keep the progress-report regression available, omit GCC static-link flags on Apple hosts, and restrict the Linux x86-64 stub execution test to Linux. Document the conversion-only workflow and add Linux, Windows and macOS CI jobs that check out without submodules, build and run CTest.This enables native Apple Silicon conversion tooling. Output remains x86-64 Linux ELF or Windows PE; system libraries and game execution still require a supported target environment. No game compatibility or performance improvement is claimed. The existing full-build Linux and Windows jobs remain in place.
Related: #1449 edits the same root CMake dependency setup. It is not a dependency; preserve the relinker-only early return when reconciling the two changes.
Tested
Review follow-up: rebased onto main
6b573862. A temporary merge with mainbc1fbe81configured and built in Release on macOS arm64 with AppleClang 17; CTest passed 30/30. The relinker source tree and standalone build configuration are unchanged between that tested merge and the latest rebase. Conventions and diff checks pass. Upstream CI still needs maintainer approval; no Linux/Windows CI success is claimed for the latest head.macOS 26.1, arm64, AppleClang 17.0.0, CMake 4.4.4, Ninja 1.13.2:
6b573862.ANYPS5_RELINKER_ONLY=ON; this branch succeeds.BUILD_TESTING=OFFconfigures only relinker targets, with no runtime or third-party targets.ANYPS5_RELINKER_ONLY=OFFstill enters the full-build dependency path and requires SDL.git diff --checkand the repository conventions check passed.No commercial title or homebrew was executed. Native Windows/Linux output execution and the full runtime build were not tested locally; the new conversion-only matrix and existing full-build jobs cover those platforms in CI.
CI status at submission: upstream workflows report
action_requiredand have not executed. The newly created fork does not yet expose its build workflow through the Actions API, so independent cloud validation remains pending.Overlap checked against the current open-PR titles and descriptions. #921 changes dependency sourcing for the full build; #927 changes the macOS exception runtime; #1156 changes guest lifecycle ownership. None adds this build mode. No dependency on those changes.
Checklist
main; no other open PR implements the same build modeImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T08:08:44Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)CMakeLists.txtL75-82CMakeLists.txtL75-82.github/workflows/build.ymlL22CMakeLists.txtL75-82Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-08T13:43:49Z.
Checked: the relinker-only configure, build and ctest on Linux (36/36 pass, no SDL/FFmpeg/third-party target configured), and the full build + ctest on the merge with current
main(457/457). Theprogress_reportmove before the early return doesn't change the full build. macOS/Windows are covered by the newrelinkerCI job; merging once it is green.