docs: describe an msvc-wine compile check for Linux hosts #484

Merged
NathansDomainSolutions merged 2 commits from upstream-pr/490 into main 2026-11-22 07:49:00 +00:00
NathansDomainSolutions commented 2026-11-22 07:11:26 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by NathansDomainSolutions on 2026-11-22T07:11:26Z.


Adds a "Compile check with msvc-wine" subsection to docs/non-windows-hosts.md, under the translation-layers section. It explains how to build the release preset on Linux with the real MSVC toolchain and Windows SDK through msvc-wine. This uses the real toolchain, not a stub, so it is consistent with the no-stub policy.

What it covers:

  • Installing msvc-wine. Its vsdownload.py requires accepting the Build Tools license.
  • A small dxc wrapper. The SDK's dxc.exe isn't wrapped by msvc-wine, and absolute Linux paths beginning with / would otherwise be parsed as options.
  • -DCMAKE_SYSTEM_NAME=Windows. Without it, CMake's compiler check fails with LNK1181 on a .o object.
  • Which tests fail or skip under Wine and vkd3d. It also states that a Wine run is a compile check only, not Windows verification or hardware coverage.

Verification

  • Commit: 92468ad on top of fae747a, Arch Linux, MSVC 19.52.37029, SDK 10.0.26100
  • Following the documented steps: cmake --build --preset release completed 112/112
  • ctest --preset release under Wine: 84 tests, 75 passed (about 40 of them skips) and 9 failed. The failures were desktop_bvh_root_flags, desktop_memory_query, d3d12_xs_shim_{exports,serialize,warp_root}, ffx_provider_loop_{hardware,warp} and bvh_root_roundtrip_{hardware,warp}. These are listed as expected Wine differences, not code failures. I haven't checked them on Windows.
  • tests/docs_links_check.py: 10 files and 96 links checked. tests/bidi_controls_check.py: clean.

AI-assisted: drafted with Claude Code.

🤖 Generated with Claude Code

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6539688212 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/490). Originally posted by [NathansDomainSolutions](https://github.com/NathansDomainSolutions) on 2026-11-22T07:11:26Z. --- Adds a "Compile check with msvc-wine" subsection to `docs/non-windows-hosts.md`, under the translation-layers section. It explains how to build the `release` preset on Linux with the real MSVC toolchain and Windows SDK through [msvc-wine](https://github.com/mstorsjo/msvc-wine). This uses the real toolchain, not a stub, so it is consistent with the no-stub policy. What it covers: - Installing msvc-wine. Its `vsdownload.py` requires accepting the Build Tools license. - A small `dxc` wrapper. The SDK's `dxc.exe` isn't wrapped by msvc-wine, and absolute Linux paths beginning with `/` would otherwise be parsed as options. - `-DCMAKE_SYSTEM_NAME=Windows`. Without it, CMake's compiler check fails with `LNK1181` on a `.o` object. - Which tests fail or skip under Wine and vkd3d. It also states that a Wine run is a compile check only, not Windows verification or hardware coverage. ## Verification - Commit: 92468ad on top of fae747a, Arch Linux, MSVC 19.52.37029, SDK 10.0.26100 - Following the documented steps: `cmake --build --preset release` completed 112/112 - `ctest --preset release` under Wine: 84 tests, 75 passed (about 40 of them skips) and 9 failed. The failures were `desktop_bvh_root_flags`, `desktop_memory_query`, `d3d12_xs_shim_{exports,serialize,warp_root}`, `ffx_provider_loop_{hardware,warp}` and `bvh_root_roundtrip_{hardware,warp}`. These are listed as expected Wine differences, not code failures. I haven't checked them on Windows. - `tests/docs_links_check.py`: 10 files and 96 links checked. `tests/bidi_controls_check.py`: clean. AI-assisted: drafted with Claude Code. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
upstream-sync closed this pull request 2026-11-24 06:43:19 +00:00
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
R0Y00/Xbox2Windows!484
No description provided.