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>
(cherry picked from commit 5acbadddb4)
This commit is contained in:
Prodea Alexandru-Liviu 2023-06-27 17:32:57 +00:00 committed by Eric Engestrom
parent 39d7fb6f5e
commit 0b12cfb2ba
2 changed files with 2 additions and 2 deletions

View file

@ -45490,7 +45490,7 @@
"description": "microsoft/clc: Don't build compiler test if build-tests is false",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

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],