meson: add dep_valgrind dependency for 'dxil_compiler'
authorYonggang Luo <luoyonggang@gmail.com>
Thu, 22 Sep 2022 15:59:46 +0000 (23:59 +0800)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Oct 2022 01:32:47 +0000 (01:32 +0000)
The error when include simple_mtx.h in glsl_types.h:
../src/microsoft/compiler/dxil_function.c
In file included from ../src/compiler/glsl_types.h:37,
                 from ../src/compiler/nir_types.h:36,
                 from ../src/compiler/nir/nir.h:44,
                 from ../src/microsoft/compiler/dxil_signature.h:28,
                 from ../src/microsoft/compiler/dxil_module.h:37,
                 from ../src/microsoft/compiler/dxil_function.h:48,
                 from ../src/microsoft/compiler/dxil_function.c:24:
../src/util/simple_mtx.h:37:12: fatal error: valgrind.h: No such file or directory
   37 | #  include <valgrind.h>

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/19154>

src/microsoft/compiler/meson.build

index c37a16b..6624d03 100644 (file)
@@ -54,7 +54,7 @@ libdxil_compiler = static_library(
   'dxil_compiler',
   [files_libdxil_compiler, dxil_nir_algebraic_c, sha1_h],
   include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_compiler, inc_gallium],
-  dependencies: [idep_nir_headers],
+  dependencies: [idep_nir_headers, dep_valgrind],
   gnu_symbol_visibility : 'hidden',
 )