meson: clc compiler test only works on win32
authorYonggang Luo <luoyonggang@gmail.com>
Sun, 7 Aug 2022 17:57:34 +0000 (01:57 +0800)
committerMarge Bot <emma+marge@anholt.net>
Tue, 9 Aug 2022 16:39:47 +0000 (16:39 +0000)
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>

src/microsoft/clc/meson.build

index a472192..35e2fb3 100644 (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],