docs: honor CARGO_TARGET_DIR in Windows build examples #3240
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!3240
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3240"
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?
@Linshi7766 on GitHub · 2026-11-26 14:18 UTC · original
Linshi7766:docs/windows-cargo-target-dir→main· +9 −3 · 1 files · 1 commits · openSummary
Follow up on #2044. After setting
CARGO_TARGET_DIRas recommended, theWindows release examples still point to
target\release\victory.exe.Resolve the executable path from
CARGO_TARGET_DIR, withtargetasthe default, and document where the
diagbuild puts the executable.Coordination claim in #1633
Verification
variable unset, set to
C:\vt, and set to a path containing spaces.All three resolved to the expected release executable path.
diagnostic output path matches the
diagprofile inCargo.toml.git diff --checkpassed.Local verification was limited to the documentation and path resolution.
AI assistance
OpenAI Codex investigated the issue, prepared the README change, ran the
checks above, and drafted this PR.
@Desamodeth on GitHub · 2026-11-26 18:17 UTC · original · reviewed
Tested
9a8a4cdon Windows PowerShell 5.1 and PowerShell 7.6 with a console executable that prints its own path and arguments. With a stale copy intarget\release, both README commands on the PR launched the configured build for relative and absoluteCARGO_TARGET_DIRpaths containing spaces. The main-branch example launched the stale copy in both cases. With the variable unset, both versions usedtarget\release.One small fix for game paths with spaces is attached. CPU-only, synthetic paths, no game data. AI-assisted with Codex.
@ -95,0 +93,4 @@$targetDir = if ($env:CARGO_TARGET_DIR) { $env:CARGO_TARGET_DIR } else { '.\target' }$victory = Join-Path $targetDir 'release\victory.exe'& $victory translate --cache --pipelines <game dir>\shaders.rpf <game dir>\<the title's exe> <game dir>\XboxBvhBuilder.dll <game dir>\amd_fidelityfx_upscaler_xbox.dll& $victory run <game dir>\<the title's exe> --execute@Desamodeth on GitHub · 2026-11-26 18:17 UTC · original
Substituting
C:\Games\Fixture Gamefor the directory splits each input path into two arguments. This also happens on main. With the quotes below, the probe received all fourtranslateinput paths intact and a single executable path forrunin both shells.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.