mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-21 16:48:22 +02:00
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 <lorenzo.rossi@collabora.com> Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/42189>
This commit is contained in:
parent
40d4cf7a70
commit
0675ce49c5
1 changed files with 3 additions and 0 deletions
|
|
@ -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'),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue