Repository navigation
Runtime build: the M2 formats test's shader rule passes LEONIDA_SPIRV_TOOLS, not PATH - #3210
Conversation
…_TOOLS, not PATH The rule added with the M2 formats test (ItsNotRexed#1996) ran build.py through cmake -E env "PATH=${LEONIDA_SPIRV_TOOLS_NATIVE};$ENV{PATH}". The ;s in that string make it a CMake list, so on Windows cmake -E env received each PATH entry as its own argument and tried to run one as the command: "no such file or directory" (MSB8066) at "Translating vs_m2, ps_m2 and ps_m2_array", which stopped every Windows build that has llvm-mc. The sibling rules pass LEONIDA_SPIRV_TOOLS, which build.py prepends to PATH; this one does the same now. AI-assisted (Claude Code).
|
Second check of I also ran the real AI-assisted. |
|
@Vonsek thanks, good to have the spaces and trailing-backslash cases covered too. |
|
Tested c2ec616 on an RTX 5090 (driver 616.92), Windows 11, MSVC 19.44, Vulkan SDK 1.4.363, RelWithDebInfo:
AI-assisted (Claude Code). |
Claimed in the coordination issue as a new BUILD item: #3047 (comment)
What and why
On
main, a Windows build ofruntime/with llvm-mc configured stops at "Translating vs_m2, ps_m2 and ps_m2_array for the M2 formats test" with "no such file or directory" (MSB8066).The rule added with the M2 formats test (#1996,
runtime/CMakeLists.txt:1335) runsbuild.pythroughcmake -E env "LLVM_MC=..." "PATH=${LEONIDA_SPIRV_TOOLS_NATIVE};$ENV{PATH}". The;s make that string a CMake list, so on Windows eachPATHentry reachescmake -E envas its own argument; the generated project shows"PATH=C:\VulkanSDK\...\Bin";"C:\VulkanSDK\...\Bin";"C:\Program Files\...", andcmake -E envtries to run the second one as the command. Running the samebuild.pycommand by hand works (3 translated, 3 passspirv-val).The sibling rules pass
LEONIDA_SPIRV_TOOLS=${LEONIDA_SPIRV_TOOLS_NATIVE}, whichbuild.py(line 176) prepends toPATHitself. This rule now does the same. One line changed.Tested
Windows 11, VS 2026 (generator "Visual Studio 18 2026"), Vulkan SDK 1.4.363.1, llvm-mc 21 (WSL), on
main16282101:d3d12_m2_formats_testpasses 12/12 (0 of 4096 pixels differ in every case) withLEONIDA_VK_VALIDATION=1on an RX 9070 XT (RDNA4, 32.0.31041.1004) and a Ryzen 7 9800X3D iGPU (RDNA2, 32.0.21045.5002).Checklist
docs/design.md, with how it was confirmed. (N/A: build fix only.)AI-assisted (Claude Code).