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

Open
github-bot wants to merge 2 commits from github-bot/gh-2364 into main AGit
Owner

@⁠Tauwni on GitHub · 2026-11-26 15:40 UTC · original
Tauwni:docs/testing-wine-macos → main · +12 −0 · 1 files · 2 commits · draft

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

**@⁠Tauwni** on GitHub · 2026-11-26 15:40 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2364) `Tauwni:docs/testing-wine-macos` → `main` · +12 −0 · 1 files · 2 commits · draft `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](https://claude.com/claude-code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 15:45:00 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2364/head:github-bot/gh-2364'
git switch 'github-bot/gh-2364'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2364'
git switch 'github-bot/gh-2364'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2364'
git switch 'github-bot/gh-2364'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2364'
git switch 'main'
git merge --squash 'github-bot/gh-2364'
git switch 'main'
git merge --ff-only 'github-bot/gh-2364'
git switch 'main'
git merge 'github-bot/gh-2364'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.