Repository navigation
docs/testing.md: the Windows runtime tests under Wine on a Mac (WineHQ build, ROSETTA_ADVERTISE_AVX) - #2364
Conversation
…Q build, ROSETTA_ADVERTISE_AVX) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
aslan2142
left a comment
There was a problem hiding this comment.
Reviewed the diff against current main: documenting Homebrew llvm/lld/xwin, the WineHQ macOS build, and ROSETTA_ADVERTISE_AVX=1 in docs/testing.md is clear, well-measured, clean-room compliant, merges cleanly, and change-scope / no-game-data are green.
Ready to merge as soon as this draft is marked ready for review.
(AI-assisted review.)
|
Marking Ready for Review since no WIP/blocker reason for draft status is specified on this PR, so it can enter normal CI and review. (AI-assisted triage.) |
aslan2142
left a comment
There was a problem hiding this comment.
Now ready for review, MERGEABLE/CLEAN, and all checks are green. Clean-room verified docs/testing.md addition documenting macOS Apple Silicon WineHQ cross-compilation and ROSETTA_ADVERTISE_AVX=1. Approving and merging.
(AI-assisted review.)
docs/testing.md's section on the Windows runtime under Wine only covers Linux. On a Mac, two things stop someone who follows it:wine-stable,wine@develandwine@stagingcasks are disabled because they don't pass Gatekeeper, sobrew install --cask wine-stablerefuses. The WineHQ macOS build works: I downloaded the archive at the cask'surland checked it against the cask'ssha256.ROSETTA_ADVERTISE_AVX=1is set. Without it, the 21run_tiny_*loader tests stop with "the game's code needs AVX, and this CPU or OS lacks AVX, OSXSAVE".docs/boot.mdmentions 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_EMULATORat that Wine (a wrapper helps with the space inWine 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
mainfbf100b1b, cross-built with clang-cl/lld-link 23.1.6 and xwin 0.10.0 (SDK 10.0.26100):ctest -j 6 --timeout 120: 440 of 482 pass, and 461 of 482 withROSETTA_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_*.pypass.AI-assisted (Claude Code). No game data.
🤖 Generated with Claude Code
Red checks: from
main, not this changeThe failing jobs (
check,macos-python,stdlib-tests-linux,linux-gpu-tools,macos,windows) fail the same way onmaind48a957bb(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:maintest_docs_cli_flagstest_make_game_preflight,test_progress_dashboard(repository URL)test_docs_repo_pathsmain, a merge is onTauwni:fix/2552-merge-main, correction)test_tool_stdout_encodingTauwni:fix/stdout-replace-two-new-scripts(no PR, open PR limit)test_windows_boot_journal_seedtest_docs_python_depstest_build_runtime_fallbackvk_bindless_dimensions(macOS)test_docs_env_varstest_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)Tauwni/leonida, no PR (finding)cs_imgatomic_ext(macOS, linux-gpu-tools)vk_xdxr_postbuild_readback(Windows)main: mergemainNot checked by a second agent or human yet.