Fix #90: gate view_format with cfg(windows) so victory-gpu builds on Linux #2006
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2008"
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?
Imported from Marvisak/VIctory. Originally posted by tharun-37 on 2026-11-25T02:49:29Z.
host_resource is already cfg(windows); view_format called it on every target, breaking the Linux build (E0425). Gate view_format the same way since its only caller (host_desc) is also cfg(windows).
Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-25T02:59:56Z.
Triage verdict — Candidate for a focused landing (
4202096)Evidence
#[cfg(windows)]is the right boundary for the first #90 error: main’sview_formatcalls the Windows-onlyhost_resource. #1017 atd5de72balready contains the identical gate alongside the remaining Linux build fixes.Checks and limits
4202096runs on Windows, so it does not establish that the Linux workspace now builds.Next step
cargo check --workspace --all-targets --lockedpasses natively on Linux, and drop the repeated hunk when rebasing #1017.This verification was AI-assisted.
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T03:33:11Z.
Review: COMMENTED
Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; source review of the diff.
view_format gated with cfg(windows) so victory-gpu builds on Linux — portability fix; welcome if CI covers the Linux build, otherwise untested territory.
upstream-sync referenced this pull request2026-11-25 10:07:36 +00:00
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T09:19:22Z.
Automated triage for the maintainers.
Merge candidate.
crates/victory-gpu/src/resource.rs,view_format: adds#[cfg(windows)]. The function callshost_resource, which is alreadycfg(windows). Its only callers,descriptor.rshost_descanddescriptor/host.rs(the module itself iscfg(windows)), are Windows-only, so nothing changes on Windows and a non-Windowscargo checkno longer fails with E0425. The same hunk appears in many larger open PRs (#1017, #39, #523, #1241 and others). This is the only PR that contains just that hunk, so it is the easiest to land first. Whichever of those PRs lands later then drops the hunk on rebase.CI: passing (
check, Windows only; it does not show that the Linux build succeeds).Recommending a look, not approving.
Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T01:37:17Z.
Code review and Windows 11 check at head
4202096cd038merged cleanly ontomain(63bcca43c6a0):crates/victory-gpu/src/resource.rs:287):#[cfg(windows)]onview_formatis still valid on currentmain(host_resourceis#[cfg(windows)]) and merges cleanly with#2890.victory-gpucompile on Linux —#2890already includes this exact#[cfg(windows)]gate along with the remaining 25-file non-Windows gates acrossresource.rsand 8 othervictory-gpumodules.cargo xtask policy:191 files ok;cargo clippy --locked -p victory-gpu --tests -- -D warnings(default +--features diagnostics): 0 warnings.Imported from Marvisak/VIctory. Originally posted by tharun-37 on 2026-11-26T03:26:27Z.
Closing to re-scope: taking on better-scoped issues instead.
Pull request closed