Module: Mesa
Branch: staging/23.1
Commit: 536717835f19f3a207f887247077b34b97d442ba
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=536717835f19f3a207f887247077b34b97d442ba

Author: Prodea Alexandru-Liviu <[email protected]>
Date:   Tue Jun 27 17:32:57 2023 +0000

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 <[email protected]>

Reviewed-by: Jesse Natalie <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23890>
(cherry picked from commit 5acbadddb454505b2cc354f9a9a33ce289f489fa)

---

 .pick_status.json             | 2 +-
 src/microsoft/clc/meson.build | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.pick_status.json b/.pick_status.json
index 2f70fb415d8..7a816c0aa97 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -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
     },
diff --git a/src/microsoft/clc/meson.build b/src/microsoft/clc/meson.build
index 8e6e77e7c73..4d618c1c953 100644
--- a/src/microsoft/clc/meson.build
+++ b/src/microsoft/clc/meson.build
@@ -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],

Reply via email to