docs: honor CARGO_TARGET_DIR in Windows build examples #3238
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from Marvisak/VIctory. Originally posted by Linshi7766 on 2026-11-26T14:18:01Z.
Summary
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 NEW-457 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.
Imported from Marvisak/VIctory. Originally posted by Desamodeth on 2026-11-26T18:17:03Z.
Review: COMMENTED
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.
Imported from Marvisak/VIctory. Originally posted by Desamodeth on 2026-11-26T18:17:04Z.
Code review location:
README.md; line 96Substituting
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.Imported from Marvisak/VIctory. Originally posted by Jackster on 2026-11-26T22:55:29Z.
Windows 11,
63bcca4+ this PR:CARGO_TARGET_DIRset (which is how this machine builds), the new$targetDir/Join-Pathlines parse, andcargo build --profile diag -p victory --features diagnosticsputs the executable at<CARGO_TARGET_DIR>\diag\victory.exe— so the new note is correct here.<game dir>placeholders, which are not valid PowerShell and were there before this PR.So the change matches what the build actually does on Windows. Docs only. AI-assisted.
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-27T00:05:13Z.
Review: APPROVED
LGTM —
cargo xtask policypasses, and verified the PowerShell snippet with$env:CARGO_TARGET_DIRunset (. arget eleaseictory.exe), set (C:t eleaseictory.exe), and containing spaces (& $victorywithJoin-Path). The updateddiagprofile note matches the rest ofREADME.md.Imported from Marvisak/VIctory. Originally posted by futurepro62 on 2026-11-27T23:12:40Z.
Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head
8192469(on its base63bcca4).Tested
dxil.dllfrom Windows SDK 10.0.26100 (the loader's default), debug.cargo build --workspace --locked, thencargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware: 866 passed, 0 failed, 10 ignored.#[test]functions in the diff.--skipleaves out tests that fail on main63bcca4on this card too, not because of this PR:heap_direct_texture_reads_mark_their_heap_indexends thevictory-shadertest process with0xc0000005(#2571), so without the skip the rest of that crate never reports;dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_viewsand the twostride_testshit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317);gathers_at_a_level_match_the_hardwarefails on lane 0 (#1744).Not tested
AI use
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.