1 From b9e6e1b10bf7eaa27c3b62e7b466b9b31cfa7cb2 Mon Sep 17 00:00:00 2001
2 From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
3 Date: Wed, 18 Oct 2023 07:37:55 +0300
4 Subject: [PATCH] rusticl: use native build for proc-macro library
6 The proc-macro libraries are used on the build machine rather than on
7 the target system, so enforce perfoming native build of the
8 rusticl_proc_macro crate.
10 Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
12 src/gallium/frontends/rusticl/meson.build | 3 ++-
13 1 file changed, 2 insertions(+), 1 deletion(-)
15 diff --git a/src/gallium/frontends/rusticl/meson.build b/src/gallium/frontends/rusticl/meson.build
16 index d7aee75240ce4..0522fc4c13da5 100644
17 --- a/src/gallium/frontends/rusticl/meson.build
18 +++ b/src/gallium/frontends/rusticl/meson.build
19 @@ -350,6 +350,7 @@ rusticl_proc_macros = shared_library(
20 'rusticl_proc_macros',
21 [rusticl_proc_macros_files],
22 rust_crate_type : 'proc-macro',
27 @@ -361,6 +362,7 @@ librusticl = static_library(
28 gnu_symbol_visibility : 'hidden',
29 rust_crate_type : 'staticlib',
31 + '--extern', 'rusticl_proc_macros=' + meson.current_build_dir() / 'librusticl_proc_macros.so',
35 @@ -368,7 +370,6 @@ librusticl = static_library(
39 - rusticl_proc_macros,