Skip to content

docs/testing.md: the Windows runtime tests under Wine on a Mac (WineHQ build, ROSETTA_ADVERTISE_AVX) - #2364

Draft
Tauwni wants to merge 2 commits into
ProjectLeonida:mainfrom
Tauwni:docs/testing-wine-macos
Draft

Tauwni wants to merge 2 commits into
ProjectLeonida:mainfrom
Tauwni:docs/testing-wine-macos

Conversation

@Tauwni

@Tauwni Tauwni commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

docs/testing.md's section on the Windows runtime under Wine only covers Linux. On a Mac, two things stop someone who follows it:

  • Installing Wine. Homebrew's wine-stable, wine@devel and wine@staging casks are disabled because they don't pass Gatekeeper, so brew install --cask wine-stable refuses. The WineHQ macOS build works: I downloaded the archive at the cask's url and checked it against the cask's sha256.
  • AVX under Rosetta. That Wine is x86-64 and runs under Rosetta, which hides AVX unless ROSETTA_ADVERTISE_AVX=1 is set. Without it, the 21 run_tiny_* loader tests stop with "the game's code needs AVX, and this CPU or OS lacks AVX, OSXSAVE". docs/boot.md mentions the variable, but only for the #UD emulation work.

This adds one paragraph after the xwin note. It gives the Homebrew tools, where the cross tools live, how to point CMAKE_CROSSCOMPILING_EMULATOR at that Wine (a wrapper helps with the space in Wine Stable.app), the variable, and what I measured.

Measured on an Apple M3 (macOS 26.5.1, Wine 11.0 with its bundled MoltenVK 1.4.1) at main fbf100b1b, cross-built with clang-cl/lld-link 23.1.6 and xwin 0.10.0 (SDK 10.0.26100):

  • 1084 targets build;
  • ctest -j 6 --timeout 120: 440 of 482 pass, and 461 of 482 with ROSETTA_ADVERTISE_AVX=1.

The 21 left are listed in my comment on #1086, which fixes 4 of them, and #1219 covers vk_device_filter_tools. tests/test_docs_*.py pass.

AI-assisted (Claude Code). No game data.

🤖 Generated with Claude Code

…Q build, ROSETTA_ADVERTISE_AVX)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant