Repository navigation
Runtime: declare title-facing functions extern "win64" - #524
spidercraft wants to merge 2 commits into
Conversation
Since the world bring-up, main no longer builds on Linux: victory-gpu names host_resource outside its cfg(windows), and victory-hle reaches Windows-only modules (xmem, files, lifecycle, the text entry dialog). This gates those uses only, as the smallest base for a native Linux runtime: - view_format and the D3D12 allocator hookup are Windows-only, like what they call. - XLaunchNewGame ends the title only on Windows; the text entry dialog answers "dismissed" elsewhere. - translate --validate / --pipelines refuse to start off Windows (no host DXIL validator or D3D12 there); translation itself runs. - Tests that parse the test binary as a PE image, or use Windows title paths, are ignored off Windows with the reason. Tested: Linux (CachyOS, rustc 1.98.1): cargo test --workspace passes (162 passed, 13 ignored). cargo check --target x86_64-pc-windows-msvc --all-targets gives the same diagnostics as before (none). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Title code calls our exports, and is called by us, with the Windows x64 convention. `extern "system"` is that convention only on Windows; on Linux it is SysV, so a native Linux runtime would receive the title's arguments in the wrong registers. `"win64"` is the same convention on every x86-64 host, so this changes nothing on Windows. Callbacks we hand to the host's own APIs stay `"system"` (the crash reporter's exception handlers, the write watch handler, window and dialog procedures, EnumWindows, our TLS callback, the probe test's CreateThread start routine). The title fixture keeps `"system"`: it is built only as a Windows PE. Tested: cargo check --workspace --all-targets --all-features for x86_64-pc-windows-msvc: no diagnostics; on Linux cargo test --workspace passes (162 passed, 13 ignored). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
catminou4
left a comment
There was a problem hiding this comment.
Test-merge with current main (ffe310e) conflicts — needs a rebase. Main moved recently (PR #566 waterfall loops touched lower.rs/resource.rs/valu_tests.rs), so shader PRs opened before it need rebasing. I'll re-review once it merges cleanly.
|
Verification ran against PR head
This verification was AI-assisted. |
|
Automated triage for the maintainers. Closing because it is outside the project's scope (VIctory targets Windows hosts; ports, launchers and tooling for other platforms are not being taken). If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution. |
What
Title code calls our exports, and is called by us, with the Windows x64 convention.
extern "system"means that only on Windows: on Linux it is SysV, so a native Linux runtime would get the title's arguments in the wrong registers. Every title-facing function (808) is nowextern "win64", which is the same convention on every x86-64 host, so nothing changes on Windows.Callbacks we hand to the host's own APIs stay
"system": the crash reporter's exception handlers, the write-watch handler, window and dialog procedures,EnumWindows, our TLS callback, the probe test'sCreateThreadstart routine. The title fixture keeps"system"(it is only built as a Windows PE). The doc comment inmodules/mod.rsstates the rule.Builds on #523 (its one commit is included; review the second).
Tested
cargo check --workspace --all-targets --all-features --target x86_64-pc-windows-msvc: no diagnostics (the type checker flagged every host callback; those are the ones kept as"system").cargo test --workspacepasses, 162 passed, 13 ignored.cargo xtask policyok.🤖 Generated with Claude Code