[PR #2096] cmake: vk_null_descriptor_test's rule creates generated/ before glslangValidator writes into it (BUILD-NULL-DESCRIPTOR-GENERATED-DIR) #2102

Open
opened 2026-11-26 21:20:02 +01:00 by 4ld0 · 0 comments
Owner

📋 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)

  • f29ca7b cmake: vk_null_descriptor_test's rule creates generated/ before glslangValidator writes into it
  • beffaa9 Merge 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 at vk_null_descriptor_test: its add_custom_command makes glslangValidator write ${CMAKE_CURRENT_BINARY_DIR}/generated/cs_null_descriptors.spv, but nothing has created generated/ 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 to generated/ does.

Tested

On an Apple M3 (macOS 26.5.1, CMake 4.5.1, Homebrew glslangValidator) from an empty build directory at main db1a22d29:

  • before: cmake --build ... --target vk_null_descriptor_test fails with "Failed to open file";
  • after: it builds, ctest -R vk_null_descriptor passes, and the whole build plus ctest give 96/96 passed.

GPUs tested: Apple M3 (MoltenVK 1.4.2), for vk_null_descriptor only

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.
  • No translator rule.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2096 **Author:** [@Tauwni](https://github.com/Tauwni) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/null-descriptor-generated-dir` --- ### 📝 Commits (2) - [`f29ca7b`](https://github.com/ubiquitarianism/leonida/commit/f29ca7bacae9507f83e8c56abdb604bd4efb4cf1) cmake: vk_null_descriptor_test's rule creates generated/ before glslangValidator writes into it - [`beffaa9`](https://github.com/ubiquitarianism/leonida/commit/beffaa9a476ca1b3dfd9cfa55e39eafbb1f5eec6) Merge main into fix/null-descriptor-generated-dir ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `runtime/CMakeLists.txt` (+1 -0) </details> ### 📄 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 at `vk_null_descriptor_test`: its `add_custom_command` makes `glslangValidator` write `${CMAKE_CURRENT_BINARY_DIR}/generated/cs_null_descriptors.spv`, but nothing has created `generated/` 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 to `generated/` does. ### Tested On an Apple M3 (macOS 26.5.1, CMake 4.5.1, Homebrew glslangValidator) from an empty build directory at `main` `db1a22d29`: - before: `cmake --build ... --target vk_null_descriptor_test` fails with "Failed to open file"; - after: it builds, `ctest -R vk_null_descriptor` passes, and the whole build plus `ctest` give 96/96 passed. GPUs tested: Apple M3 (MoltenVK 1.4.2), for `vk_null_descriptor` only AI-assisted: yes (Claude Code) ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption. - [x] No translator rule. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#2102
No description provided.