render/vulkan: use renamed glslang binary by default

glslang 12.3.0 renamed glslangValidator to glslang,
use that by default and use the old name as a fallback.

References: https://github.com/KhronosGroup/glslang/blob/main/CHANGES.md?plain=1#L14
This commit is contained in:
q234rty 2023-07-27 15:59:02 +08:00
parent 42a5b6f62a
commit 061f5fafbd
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ if not cc.check_header('vulkan/vulkan.h', dependencies: dep_vulkan)
endif
endif
glslang = find_program('glslangValidator', native: true, required: false)
glslang = find_program('glslang', 'glslangValidator', native: true, required: false)
if not glslang.found()
if 'vulkan' in renderers
error('\n'.join(msg).format('glslang'))