Build on Linux: cross-compile for MSVC, run under Wine #195
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!195
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/195/head"
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?
@Naitrate on GitHub · 2026-11-24 01:18 UTC · original
Naitrate:linux-wine-build→main· +237 −15 · 6 files · 1 commits · closed without mergingWhat
VIctory can now be built on Linux and run under Wine. It is still a Windows program: it is cross-compiled for
x86_64-pc-windows-msvcwith cargo-xwin and run with VKD3D-Proton and DXVK.shell.nix: the toolchain for Nix users, plusWINEPREFIX, DLL overrides, the test runner, and the VKD3D-Proton/DXVK shader caches kept in the prefix..nixfiles.ws2_32.dlllacksWSAConnectByListandGetAddrInfoExA, and itswinhttp.dlllacksWinHttpGetProxySettingsEx. Forwarding to them panicked (the host lacks ...).WSAConnectByListnow tries each vetted candidate in turn withconnect. It blocks, and the timeout isn't honoured.GetAddrInfoExAanswersWSAHOST_NOT_FOUND, as it already does for a blocked name.WinHttpGetProxySettingsExnever calls the host's function. The export test exempts all three, and a new test covers theconnectfallback.view_formatis#[cfg(windows)], likehost_resource, its only callee. Before this,cargo test --workspacefailed on any non-Windows host withcannot find function host_resource..githooks/pre-commitis executable (100755). Git ignored it on Linux even aftercargo xtask install-hooksreported it as installed.Why
Wine's own D3D12 rejects the shader model 6.6 query (
E_INVALIDARG), so the title shows only a white window. VKD3D-Proton reports SM 6.6–6.8 and runs the translated shaders.Testing
Tested on NixOS with Wine 11.21 (Staging), VKD3D-Proton 3.0.1, DXVK 3.1.1 and an RTX 5060 Ti:
cargo xwin build --release --target x86_64-pc-windows-msvcbuilds.cargo xwin test -p victory-hleunder Wine passes all 87 tests, includingonly_loopback_is_reachable, which panicked before.load_probeandrepository_passes_policy(they startcargoandgitfrom inside Wine), andstub_pipeline_is_created(VKD3D-Proton doesn't check DXIL hashes).buffer_data_reaches_the_host_texture,argument_clamp_buildsanda_rejected_blob_gives_an_empty_libraryfail under VKD3D-Proton. The README lists them.cargo xtask policyand the xtask tests pass natively.Not tested on Windows. Every Rust change is a no-op there except the
WSAConnectByListandGetAddrInfoExAfallbacks, which only run when the host lacks those exports.🤖 Generated with Claude Code
@ligmaSec on GitHub · 2026-11-24 01:20 UTC · original
duplicate of #191
@DaviTostes on GitHub · 2026-11-24 01:27 UTC · original
Tested
4b38ecfunder Wine 11.22 + vkd3d-proton 3.1 on Arch Linux x86_64 (AMD RX 9060 XT, RADV 26.3.1), Windows build ofvictory-hle: 87 passed, 0 failed, 0 ignored.WSAConnectByListfallback innet.rsfixes the one failure the suite had here (Wine'sws2_32does not export it):modules::net::tests::only_loopback_is_reachablenow passes, and the whole HLE suite is green.#[cfg(windows)]onview_formatand the shell.nix/README additions also apply cleanly.No game data used.
@Naitrate on GitHub · 2026-11-24 01:31 UTC · original
Closing as a duplicate of #191, which covers the Linux build. The parts #191 doesn't include (Wine fallbacks for missing ws2_32 exports, the
view_formatcfg fix and the pre-commit hook's executable bit) will follow in a separate, smaller PR that works with either toolchain.Pull request closed