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

Open
github-bot wants to merge 1 commit from github-bot/gh-2063 into main AGit
Owner

@⁠alexandersato0830 on GitHub · 2026-11-25 19:21 UTC · original
alexandersato0830:codex/glslang-binary-discovery → main · +4 −10 · 1 files · 1 commits · open

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.
**@⁠alexandersato0830** on GitHub · 2026-11-25 19:21 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2063) `alexandersato0830:codex/glslang-binary-discovery` → `main` · +4 −10 · 1 files · 1 commits · open Claimed in the coordination issue as: [BUILD-GLSLANG-DISCOVERY](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:16:36 +00:00
Author
Owner

@⁠MSedgeMC on GitHub · 2026-11-25 19:51 UTC · original · approved these changes

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.

**@⁠MSedgeMC** on GitHub · 2026-11-25 19:51 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2063#pullrequestreview-6064013297) · **approved these changes** 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.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2063/head:github-bot/gh-2063'
git switch 'github-bot/gh-2063'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2063'
git switch 'github-bot/gh-2063'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2063'
git switch 'github-bot/gh-2063'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2063'
git switch 'main'
git merge --squash 'github-bot/gh-2063'
git switch 'main'
git merge --ff-only 'github-bot/gh-2063'
git switch 'main'
git merge 'github-bot/gh-2063'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.