fix(build): build.cmd builds its own tree from any directory #17
No reviewers
Labels
No labels
area: audio
area: d3d11
area: d3d12
area: gdk
area: gui
area: kernel
area: loader
area: shaders
area: video
area: winrt
bug
compat
console: series-xs
console: xbox-one
duplicate
enhancement
graphics-glitch
needs-log
needs-repro
not-a-dump
regression
status: boots
status: in-game
status: intro
status: menu
status: nothing
status: playable
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/sammwyy--xvalkyrie!17
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-17"
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?
@landovg on GitHub · 2026-11-27 18:41 UTC · original
landovg:fix/build-cmd-script-dir→main· +3 −1 · 1 files · 1 commits · openbuild.cmdparses its options withshift, and eachshiftalso moves%0. After any option (--test,Debug…),pushd "%~dp0"resolves against the current directory rather than the script's folder. SoD:\src\xvalkyrie\build.cmd --test, run from another directory, configures and builds that directory instead of the repository.This change captures the script's folder in
ROOTbefore the options are parsed, andpushdes there.Tested (Windows 11, VS 2022 Build Tools 17.14, CMake 4.4.4):
build.cmd --testfrom an empty directory outside the tree buildsbuild\winof the repository, and CTest passes 2/2. The empty directory stays empty.🤖 Generated with Claude Code
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.