meson: prog_glslang should always be for the build machine

It doesn't produce different code when compiled for the host machine,
and this avoids needing two copies and possibly a host machine emulator
in cross compilation settings

Reviewed-by: Luis Felipe Strano Moraes <luis.strano@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19449>
This commit is contained in:
Dylan Baker 2022-11-01 13:35:24 -07:00 committed by Marge Bot
parent 9a85d2ed98
commit ae30c6c375
1 changed files with 1 additions and 1 deletions

View File

@ -686,7 +686,7 @@ if vdpau_drivers_path == ''
endif
if with_vulkan_overlay_layer or with_aco_tests or with_amd_vk
prog_glslang = find_program('glslangValidator')
prog_glslang = find_program('glslangValidator', native : true)
if run_command(prog_glslang, [ '--quiet', '--version' ], check : false).returncode() == 0
glslang_quiet = ['--quiet']
else