Find glslang under either executable name (BUILD-GLSLANG-DISCOVERY) #2063

Merged
alexandersato0830 merged 1 commit from upstream-pr/2063 into main 2026-11-27 20:47:15 +00:00
alexandersato0830 commented 2026-11-25 19:21:10 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by alexandersato0830 on 2026-11-25T19:21:10Z.


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.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5497662931 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2063). Originally posted by [alexandersato0830](https://github.com/alexandersato0830) on 2026-11-25T19:21:10Z. --- 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.
MSedgeMC commented 2026-11-25 19:51:19 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MSedgeMC on 2026-11-25T19:51:19Z.

Review: APPROVED


Verified by source inspection of the PR branch: grep shows exactly one remaining find_program(Vulkan_GLSLANG_VALIDATOR_EXECUTABLE ...) at runtime/CMakeLists.txt:1836, placed before its first use at line 1980; all four duplicate/late find_program calls are removed, so a glslang found under either name is available to every shader-compilation block. I could not run a full CMake configure here (no Vulkan SDK/GPU on this host), so this approval is based on the diff and call-order check. Advisory: branch carries ~45 older commits not on main; rebase before merge.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6064013297 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2063#pullrequestreview-6064013297). Originally posted by [MSedgeMC](https://github.com/MSedgeMC) on 2026-11-25T19:51:19Z. **Review:** APPROVED --- Verified by source inspection of the PR branch: grep shows exactly one remaining find_program(Vulkan_GLSLANG_VALIDATOR_EXECUTABLE ...) at runtime/CMakeLists.txt:1836, placed before its first use at line 1980; all four duplicate/late find_program calls are removed, so a glslang found under either name is available to every shader-compilation block. I could not run a full CMake configure here (no Vulkan SDK/GPU on this host), so this approval is based on the diff and call-order check. Advisory: branch carries ~45 older commits not on main; rebase before merge.
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!2063
No description provided.