Skip to content

Fix #90: gate view_format with cfg(windows) so victory-gpu builds on Linux - #2008

Open
tharun-37 wants to merge 1 commit into
Marvisak:mainfrom
tharun-37:fix/linux-build-view-format
Open

tharun-37 wants to merge 1 commit into
Marvisak:mainfrom
tharun-37:fix/linux-build-view-format

Conversation

@tharun-37

Copy link
Copy Markdown

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).

@jeremygold02

jeremygold02 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Triage verdict — Candidate for a focused landing (4202096)

Evidence

Checks and limits

  • The green check on 4202096 runs on Windows, so it does not establish that the Linux workspace now builds.

Next step

This verification was AI-assisted.

@catminou4 catminou4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Owner

Automated triage for the maintainers.
Merge candidate.

crates/victory-gpu/src/resource.rs, view_format: adds #[cfg(windows)]. The function calls host_resource, which is already cfg(windows). Its only callers, descriptor.rs host_desc and descriptor/host.rs (the module itself is cfg(windows)), are Windows-only, so nothing changes on Windows and a non-Windows cargo check no 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants