fix(build): find MSVC, CMake, Ninja and dxc instead of fixed paths #15
No reviewers
Labels
No labels
accessibility
bug
cross-platform
documentation
duplicate
enhancement
gdk-shims
good first issue
graphics
hardware-report
help wanted
invalid
question
shaders
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/californiaAlmonds--OpenScarlett!15
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/15/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?
@marquezinii on GitHub · 2026-11-22 07:33 UTC · original
marquezinii:fix/build-cmd-toolchain-discovery→main· +39 −3 · 1 files · 1 commits · merged 2026-11-22 08:08 UTCbuild.cmdonly works on a machine with VS 2022 Community at its default path and theE:\ScarlettX-devtoolchain. Anywhere elsevcvars64.batisn't found, so CMake gets no compiler (CMAKE_C_COMPILER not set).This change:
cl.exeon PATH);vswherefor the newest install with the x64 C++ tools (Community, Professional, Enterprise or Build Tools, any version), falling back to the old VS 2022 Community path;vcvars64.batcallsvswhere.exeby name and prints an error without it;dxc.exefrom the newest installed Windows SDK instead of10.0.26100.0only;E:\ScarlettX-devCMake and Ninja first when they exist, so the existing setup behaves as before.build_wt.cmdis left alone since it's tied to theE:\OpenScarlettworktree layout.Tested
Windows 11 26H2 (26300), VS Build Tools 18 (MSVC 14.52.37025), Windows SDK 10.0.26100.0, RTX 5070 (driver 621.24):
build.cmdfrom a plaincmdwindow: configure + full build, 0 warnings,ctest42/42 passed.build.cmd where cl ninja cmake dxcresolves the Build Toolscl.exe, the VS-bundledninja.exe/cmake.exeand the SDKdxc.exe.@californiaAlmonds on GitHub · 2026-11-22 08:08 UTC · original · approved these changes
Reviewed and verified on host toolchain (vswhere + VS Build Tools/Community + Windows SDK dxc.exe discovery while preserving E:\ScarlettX-dev priority). Merging!