fix(build): skip bundled SPIRV-Tools install on MinGW #28067
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/28067"
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 ShaderPanda on 2026-11-28T11:06:06Z.
On Windows with MSYS2 UCRT64, enabling ANYPS5_ENABLE_SPIRV_TOOLS on main at
9f02806678caused CMake generation to fail. The bundled SPIRV-Tools export sets referenced windows_seh_personalities, which was missing from those sets.This change sets SKIP_SPIRV_TOOLS_INSTALL when configuring the bundled dependency on MinGW.
Tested on Windows with MSYS2 UCRT64, Ninja, and a Release build. I reproduced the original error in a fresh build directory. After applying the fix and clearing the manually supplied workaround with -U SKIP_SPIRV_TOOLS_INSTALL, CMake generated successfully. I built the replay test target, and agc_compute_pipeline_replay passed (1/1, 0.63 seconds).
Overlap: I manually checked the CMake file patches for all 15 PRs the checker could not compare. None edits this setup block.
Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-28T11:23:45Z.
Review: APPROVED
Reviewed — looks good
The change sets
SKIP_SPIRV_TOOLS_INSTALLwhile configuring bundled SPIRV-Tools on MinGW, and the reviewed CMake logic supports that intended scope.What I ran
Reviewed head
36183000a5ecedb09424c237b9028cc15207405a. No commands or tests were run; the Windows build and test results are author-reported.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Build generation and tests were not run independently. Only the changed CMake file was read; no other changed files were listed in
manifest.json. No separatefiles.jsonwas available in the review bundle.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T14:03:23Z.
Review: COMMENTED
git diff --checkreports trailing whitespace on the newif(MINGW)line incore/shader/recompiler/CMakeLists.txt. Please remove it and align the whole conditional with the surrounding SPIRV-Tools options. I confirmed the pinned dependency readsSKIP_SPIRV_TOOLS_INSTALL.The GCN scalar-buffer CTest passed on
mainand this head integrated using lavapipe. Both logs show Khronos validation 1.4.369 being inserted, with no missing-layer diagnostic orVUID-messages. The test exercised the Linux build. The MinGW install path remains unverified here.AI-assisted: yes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.