Fix #90: gate view_format with cfg(windows) so victory-gpu builds on Linux #2008
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!2008
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2008/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?
@tharun-37 on GitHub · 2026-11-25 02:49 UTC · original
tharun-37:fix/linux-build-view-format→main· +1 −0 · 1 files · 1 commits · closed without merginghost_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).
@jeremygold02 on GitHub · 2026-11-25 02:59 UTC · original · edited 2026-11-25 03:22 UTC
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.
@Marvisak on GitHub · 2026-11-25 09:19 UTC · original
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
@fuzeofficlal on GitHub · 2026-11-26 01:37 UTC · original
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.@tharun-37 on GitHub · 2026-11-26 03:26 UTC · original
Closing to re-scope: taking on better-scoped issues instead.
Pull request closed