From 0675ce49c5083231b5a26690fcd795235c8ee9d5 Mon Sep 17 00:00:00 2001 From: Lorenzo Rossi Date: Wed, 10 Jun 2026 19:10:50 +0200 Subject: [PATCH] kraid: Fix out-of-tree build issue Rust bindgen creates include dependencies that are relative to the project root, that works perfectly if the build root is inside of the project root, but breaks when it's a separate directory Signed-off-by: Lorenzo Rossi Reviewed-by: Faith Ekstrand Part-of: --- src/panfrost/compiler/kraid/meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/panfrost/compiler/kraid/meson.build b/src/panfrost/compiler/kraid/meson.build index aa2e638ce2c..a2477fbb626 100644 --- a/src/panfrost/compiler/kraid/meson.build +++ b/src/panfrost/compiler/kraid/meson.build @@ -55,6 +55,9 @@ _libkraid_binding_wrappers = static_library( 'kraid_binding_wrappers', ['bindings.h', _kraid_bindings_rs[1]], gnu_symbol_visibility : 'hidden', + include_directories : [ + fs.relative_to(meson.project_build_root(), meson.current_source_dir()), + ], c_args : [ pre_args, cc.get_supported_arguments('-Wno-missing-prototypes'),