fix(build): skip bundled SPIRV-Tools install on MinGW #28067

Open
ShaderPanda wants to merge 1 commit from upstream-pr/28067 into main
ShaderPanda commented 2026-11-28 11:06:06 +00:00 (Migrated from github.com)

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 9f02806678 caused 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

  • Chores
    • Updated the Windows MinGW build configuration for bundled SPIRV-Tools. This change affects build and installation setup; no user-facing features or behavior have changed.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5539467927 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/28067). Originally posted by [ShaderPanda](https://github.com/ShaderPanda) on 2026-11-28T11:06:06Z. --- On Windows with MSYS2 UCRT64, enabling ANYPS5_ENABLE_SPIRV_TOOLS on main at 9f02806678 caused 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. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Chores** * Updated the Windows MinGW build configuration for bundled SPIRV-Tools. This change affects build and installation setup; no user-facing features or behavior have changed. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
MarcZX10 commented 2026-11-28 11:23:45 +00:00 (Migrated from github.com)

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_INSTALL while 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

Check Result Note
Diff and changed lines passed One CMake file reviewed
Build and tests not run Windows results supplied by author

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 separate files.json was available in the review bundle.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6097459185 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/28067#pullrequestreview-6097459185). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-28T11:23:45Z. **Review:** APPROVED --- # Reviewed — looks good The change sets `SKIP_SPIRV_TOOLS_INSTALL` while 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 | Check | Result | Note | |---|---|---| | Diff and changed lines | passed | One CMake file reviewed | | Build and tests | not run | Windows results supplied by author | ## 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 separate `files.json` was available in the review bundle. ## To get this to a good state Nothing is required.
ligmaSec commented 2026-12-03 14:03:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T14:03:23Z.

Review: COMMENTED


git diff --check reports trailing whitespace on the new if(MINGW) line in core/shader/recompiler/CMakeLists.txt. Please remove it and align the whole conditional with the surrounding SPIRV-Tools options. I confirmed the pinned dependency reads SKIP_SPIRV_TOOLS_INSTALL.

The GCN scalar-buffer CTest passed on main and this head integrated using lavapipe. Both logs show Khronos validation 1.4.369 being inserted, with no missing-layer diagnostic or VUID- messages. The test exercised the Linux build. The MinGW install path remains unverified here.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6171296644 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/28067#pullrequestreview-6171296644). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T14:03:23Z. **Review:** COMMENTED --- `git diff --check` reports trailing whitespace on the new `if(MINGW)` line in `core/shader/recompiler/CMakeLists.txt`. Please remove it and align the whole conditional with the surrounding SPIRV-Tools options. I confirmed the pinned dependency reads `SKIP_SPIRV_TOOLS_INSTALL`. The GCN scalar-buffer CTest passed on `main` and this head integrated using lavapipe. Both logs show Khronos validation 1.4.369 being inserted, with no missing-layer diagnostic or `VUID-` messages. The test exercised the Linux build. The MinGW install path remains unverified here. AI-assisted: yes.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/28067:upstream-pr/28067'
git switch 'upstream-pr/28067'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/28067'
git switch 'upstream-pr/28067'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/28067'
git switch 'upstream-pr/28067'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/28067'
git switch 'main'
git merge --squash 'upstream-pr/28067'
git switch 'main'
git merge --ff-only 'upstream-pr/28067'
git switch 'main'
git merge 'upstream-pr/28067'
git push origin 'main'
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!28067
No description provided.