mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:05:54 +01:00
[PR #2096] cmake: vk_null_descriptor_test's rule creates generated/ before glslangValidator writes into it (BUILD-NULL-DESCRIPTOR-GENERATED-DIR) #2102
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2102
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2096
Author: @Tauwni
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/null-descriptor-generated-dir📝 Commits (2)
f29ca7bcmake: vk_null_descriptor_test's rule creates generated/ before glslangValidator writes into itbeffaa9Merge main into fix/null-descriptor-generated-dir📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
runtime/CMakeLists.txt(+1 -0)📄 Description
Claimed in the coordination issue as: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7173420976
What and why
Since
ba626820e, a fresh macOS or Linux build of the runtime fails atvk_null_descriptor_test: itsadd_custom_commandmakesglslangValidatorwrite${CMAKE_CURRENT_BINARY_DIR}/generated/cs_null_descriptors.spv, but nothing has createdgenerated/when that rule runs, so it stops with "ERROR: Failed to open file" and the targets and ctest runs after it fail too. The rule now creates the directory first, with${CMAKE_COMMAND} -E make_directory, as the other rule writing togenerated/does.Tested
On an Apple M3 (macOS 26.5.1, CMake 4.5.1, Homebrew glslangValidator) from an empty build directory at
maindb1a22d29:cmake --build ... --target vk_null_descriptor_testfails with "Failed to open file";ctest -R vk_null_descriptorpasses, and the whole build plusctestgive 96/96 passed.GPUs tested: Apple M3 (MoltenVK 1.4.2), for
vk_null_descriptoronlyAI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.