microsoft/clc: Don't build compiler test if build-tests is false

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8161

Cc: mesa-stable

Reviewed-by: Eric Engestrom <eric@igalia.com>

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23890>
This commit is contained in:
Prodea Alexandru-Liviu
2023-06-27 17:32:57 +00:00
committed by Marge Bot
parent 1b7bf9a4f4
commit 5acbadddb4
+1 -1
View File
@@ -34,7 +34,7 @@ libclc_compiler = shared_library(
name_prefix : '' # otherwise mingw will create libclon12compiler.dll
)
if dep_dxheaders.found() and host_machine.system() == 'windows'
if dep_dxheaders.found() and host_machine.system() == 'windows' and with_tests
clc_compiler_test = executable('clc_compiler_test',
['clc_compiler_test.cpp', 'compute_test.cpp'],
link_with : [libclc_compiler],