meson: clc compiler test only works on win32

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17934>
This commit is contained in:
Yonggang Luo 2022-08-08 01:57:34 +08:00 committed by Marge Bot
parent e95531e101
commit c67e60ae8f

View file

@ -34,7 +34,7 @@ libclc_compiler = shared_library(
name_prefix : '' # otherwise mingw will create libclon12compiler.dll
)
if dep_dxheaders.found()
if dep_dxheaders.found() and host_machine.system() == 'windows'
clc_compiler_test = executable('clc_compiler_test',
['clc_compiler_test.cpp', 'compute_test.cpp'],
link_with : [libclc_compiler],