Find glslang under either executable name (BUILD-GLSLANG-DISCOVERY) #2063
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2063"
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?
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, withglslangValidatorfirst andglslangas the second name. Khronos glslang 16.6.0 releaseTested
490f5b9omittedd3d12_title_va_test. The patch foundglslang.exeand configured the target.vk_null_descriptorsuccessfully on RTX 4080, NVIDIA 621.01.glslangValidator.exewhen present and honored a custom compiler path explicitly provided viaVulkan_GLSLANG_VALIDATOR_EXECUTABLE.tests/test_ctest_registration.pyandtests/test_cmake_vulkan_missing.pypassed, 10 tests total.git diff --check.AI-assisted: yes.
main.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.