[PR #2063] Find glslang under either executable name (BUILD-GLSLANG-DISCOVERY) #2069

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2063
Author: @alexandersato0830
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: codex/glslang-binary-discovery


📝 Commits (1)

  • c3b0e86 Find the standalone glslang compiler in runtime CMake

📊 Changes

1 file changed (+4 additions, -10 deletions)

View changed files

📝 runtime/CMakeLists.txt (+4 -10)

📄 Description

Claimed in the coordination issue as: BUILD-GLSLANG-DISCOVERY

What and why

CMake missed the standalone Khronos Windows package because it ships glslang.exe. That caused it to omit Vulkan runtime test targets even with a working shader compiler on PATH. Use one lookup for the Vulkan targets, with glslangValidator first and glslang as the second name. Khronos glslang 16.6.0 release

Tested

  • Windows 11, CMake with Visual Studio 18 and MSVC 19.51, Khronos glslang 16.6.0 on PATH. Main 490f5b9 omitted d3d12_title_va_test. The patch found glslang.exe and configured the target.
  • Built the GLSL fixture and ran vk_null_descriptor successfully on RTX 4080, NVIDIA 621.01.
  • Two fresh configurations selected glslangValidator.exe when present and honored a custom compiler path explicitly provided via Vulkan_GLSLANG_VALIDATOR_EXECUTABLE.
  • tests/test_ctest_registration.py and tests/test_cmake_vulkan_missing.py passed, 10 tests total.
  • Verified the source-only check and git diff --check.

AI-assisted: yes.

  • Based on current main.
  • One topic.
  • Uses repository source and a synthetic shader fixture.

🔄 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/2063 **Author:** [@alexandersato0830](https://github.com/alexandersato0830) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `codex/glslang-binary-discovery` --- ### 📝 Commits (1) - [`c3b0e86`](https://github.com/ubiquitarianism/leonida/commit/c3b0e864910a9f59a231963464cc2536e18a7c14) Find the standalone glslang compiler in runtime CMake ### 📊 Changes **1 file changed** (+4 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `runtime/CMakeLists.txt` (+4 -10) </details> ### 📄 Description Claimed in the coordination issue as: [BUILD-GLSLANG-DISCOVERY](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7172077501) ### What and why CMake missed the standalone Khronos Windows package because it ships `glslang.exe`. That caused it to omit Vulkan runtime test targets even with a working shader compiler on PATH. Use one lookup for the Vulkan targets, with `glslangValidator` first and `glslang` as the second name. [Khronos glslang 16.6.0 release](https://github.com/KhronosGroup/glslang/releases/tag/16.6.0) ### Tested - Windows 11, CMake with Visual Studio 18 and MSVC 19.51, Khronos glslang 16.6.0 on PATH. Main `490f5b9` omitted `d3d12_title_va_test`. The patch found `glslang.exe` and configured the target. - Built the GLSL fixture and ran `vk_null_descriptor` successfully on RTX 4080, NVIDIA 621.01. - Two fresh configurations selected `glslangValidator.exe` when present and honored a custom compiler path explicitly provided via `Vulkan_GLSLANG_VALIDATOR_EXECUTABLE`. - `tests/test_ctest_registration.py` and `tests/test_cmake_vulkan_missing.py` passed, 10 tests total. - Verified the source-only check and `git diff --check`. AI-assisted: yes. - [x] Based on current `main`. - [x] One topic. - [x] Uses repository source and a synthetic shader fixture. --- <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#2069
No description provided.