Memory: detect a macOS host under Wine (mac_host) #2361
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2361
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2361"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@vakaobr on GitHub · 2026-11-25 16:40 UTC · original
vakaobr:memory/mac-host-detection→main· +44 −0 · 1 files · 1 commits · draftAdds
util::mac_host(): the process runs under Wine on a Mac (CrossOver or the Game Porting Toolkit), where D3D12 is Apple's D3DMetal and the title's code runs through Rosetta 2. ntdll'swine_get_host_versionnames the host's system, and "Darwin" is a Mac;XCL_MAC_HOST=1/0overrides it. Nothing calls it yet: two Mac changes that need to know they run there build on it (thes_barrierdefault and title textures on shared pages, both stacked on this). Until now only themac7branch from #258 had it. Part of #258.What is in it
crates/xcl/src/util.rs:mac_host()(next tounder_wine()), its decision inmac_host_from(forced, sysname), and the testa_mac_host_is_darwin_under_wine_unless_forced.Tested
x86_64-pc-windows-gnu, debug, at6d6a3e3(onmain65fc114).util::tests::a_mac_host_is_darwin_under_wine_unless_forcedandutil::tests::dll_keys, each in its own process in the CrossOver bottle: 2 passed.mac7's, which has been running on this Mac.Regression run
main's. I have no title of my own to runscripts/smoke.ps1on.Not tested
wine_get_host_versiondoes not exist, so it answers false), Wine on Linux, the whole suite.AI use
@DavidM1911 on GitHub · 2026-11-25 18:50 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.