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

Open
opened 2026-11-26 21:21:00 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2364
Author: @Tauwni
Created: 11/26/2026
Status: 🔄 Open

Base: main ← Head: docs/testing-wine-macos


📝 Commits (1)

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

📊 Changes

1 file changed (+12 additions, -0 deletions)

View changed files

📝 docs/testing.md (+12 -0)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2364 **Author:** [@Tauwni](https://github.com/Tauwni) **Created:** 11/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `docs/testing-wine-macos` --- ### 📝 Commits (1) - [`e3ee01d`](https://github.com/ubiquitarianism/leonida/commit/e3ee01dcde46090b605ea4c5fed64d4cca6ea1b5) docs/testing.md: the Windows runtime tests under Wine on a Mac (WineHQ build, ROSETTA_ADVERTISE_AVX) ### 📊 Changes **1 file changed** (+12 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/testing.md` (+12 -0) </details> ### 📄 Description `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) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#2367
No description provided.