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

Red checks: from main, not this change

The failing jobs (check, macos-python, stdlib-tests-linux, linux-gpu-tools, macos, windows) fail the same way on main d48a957bb (MEASURED on macOS for the Python tests, 1 run, with the same assertion text; GPU tests READ from this PR's CI logs). The open pull requests that fix them:

Failing on main Fixed by
test_docs_cli_flags #2536
test_make_game_preflight, test_progress_dashboard (repository URL) #2550
test_docs_repo_paths #2552 (all 14 paths; it conflicts with main, a merge is on Tauwni:fix/2552-merge-main, correction)
test_tool_stdout_encoding #2531, plus two scripts on Tauwni:fix/stdout-replace-two-new-scripts (no PR, open PR limit)
test_windows_boot_journal_seed #2514
test_docs_python_deps passes with the fixes above merged
test_build_runtime_fallback #2573 (passes with it, macOS, 1 run)
vk_bindless_dimensions (macOS) #2441
test_docs_env_vars DOC-CLWB-SETTING (fix)
test_make_game_pipelines, test_sampler_source_census, test_spirv_metal_set0_cli_errors, test_spirv_metal_set0_extra, tests/semantic/test_valu_cvt_f16_int16_mods.py, ps_exp_f32_denorm_rt (macOS) branches on Tauwni/leonida, no PR (finding)
cs_imgatomic_ext (macOS, linux-gpu-tools) #1518, closed without a comment
vk_xdxr_postbuild_readback (Windows) already passes on main: merge main

Not checked by a second agent or human yet.

…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