build: apply the shader-compiler /W4 /WX ratchet to MSVC only #3855
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3855"
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 R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-12-02T13:25:38Z.
Fixes #3853.
What changed. The
/W4 /permissive-+/WXratchetd654ad80added for the shader compiler is now insideMSVCis true for clang-cl as well, because clang-cl presents the MSVC command line, so the ratchet reached a compiler with a different warning set and madesrc/gfx1013_vertex_id.cppfail at/WX(7 ×-Wmissing-field-initializers). Real MSVC keeps exactly the flags and the per-source/WXit had before; nothing else in the block moved.Why this and not a suppression. The commit's own message is "raise MSVC warnings for the shader compiler", so applying it to MSVC matches the stated intent, and it leaves
docs/non-windows-hosts.md's clang-cl route working instead of needing a clang-specific exemption for one warning class. If you would rather keep/W4 /WXactive for clang-cl, the alternative is-Wno-missing-field-initializersfor clang only — say so and I will switch; either way the 7 initializers in that file stay as they are, since they are your file and not this change's subject.Verification — Debian, clang-cl 19.1.1, xwin SDK 10.0.26100 splat, Release, the toolchain file from the clang-cl section of
docs/non-windows-hosts.md:Not established. No MSVC, no Windows host and no GPU here, so the MSVC side is unchanged-by-inspection, not re-measured. The Windows CI job is the check for that. The pure-Python checks are unaffected — this touches only a CMake condition.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-12-02T13:25:54Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
4f299d4ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-12-02T13:43:46Z.
Windows CI on this PR failed, but not because of this change — the only failing test is
native_direct_mesh, and it fails identically on #2773, #3852 and #1536, none of which touch a warning-flag condition. Filed as #3856 with the four job links and the error line (native compute +0x34: unmapped graphics export).This change only moves a
if(MSVC)condition, so it cannot alter the shader-compiler's runtime behaviour; the MSVC warning flags and the per-source/WXare unchanged. Linux Python checks and the gfx1013 job pass on this head, matching the local before/after I recorded.Codex reviewed at
4f299d4bwith no findings.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T14:06:03Z.
Review: APPROVED
Reviewed
4f299d4b. The CMake-only change gates the shader compiler and CLI warning options together, keeping the per-source/WXlist and MSVC options intact while excluding the Clang frontend used by the documented clang-cl/xwin build. The author tested that build with clang-cl 19.1.1. I checked the exact diff and verified the hosted Windows log reaches CTest, where the only failed test is the sharednative_direct_meshfixture (+0x34: unmapped graphics export, #3851). I did not rerun the clang-cl/xwin build locally.Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-12-02T15:11:37Z.
Noting why this is still blocked after your approval, so it does not look like the change is failing on its own merits.
The required
Build and test on Windowscheck is red on this head, and the only failing test isnative_direct_mesh— the shared fixture breakage tracked in #3856, not anything this PR touches (it moves one CMake condition). It fails identically on #2773, #3852 and #1536.PR #3861 fixes it and is green on all checks (Windows 9m4s, gfx1013 3m50s, Linux Python 5m26s). It is a one-line fixture restore.
One-step path to unblock this one: merge #3861, then I merge current
maininto this branch and re-run the checks — the diff here does not change, it just needs the fixed fixture underneath it. Re-running this PR's checks before then would reproduce the same failure, so it is not worth a re-run yet.reviewDecisionalso reads empty for this PR despite your approval, which suggests the branch protection rule is not counting it as satisfying the review requirement. Worth a look on your side if you expected the merge button to be live once the check passes.Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-12-02T15:20:14Z.
Merged the #3861 fixture fix into this branch so the approved change is no longer stuck behind an unrelated failure. Head is now
1d4e68fa.Why here and not "wait for #3861 to merge". You approved this PR, and it was blocked only by the required Windows check failing on
native_direct_mesh(#3856) — a broken fixture that5545de92introduced, nothing to do with this diff. Merging rather than re-running was the only way to get the check to pass; a re-run would have reproduced the same failure.What is in the branch now, relative to current
main:Verified on this head:
native_direct_mesh_check.pyagainst acompile_dxilbuilt here → exit 0,mesh allocation, indexed outputs, group exchange and negative controls passed. Before the merge it aborted withunmapped graphics export.tests/standin_exports_check.py→ 470 cases, 6/6 mutations killed, PASS.If #3861 merges first, this merge becomes a no-op — the fixture commit is already in
main, so this PR will show only its CMake diff again. Either order is safe; they do not conflict.I have not merged anything, and I am not asking you to skip the check — it should now run green on its own.