]> git.pld-linux.org Git - packages/Mesa.git/blob - no-rust-proc-macro-link.patch
- package intel_hasvk (in -vulkan-icd-intel), nouveau, virtio Vulkan drivers; updates...
[packages/Mesa.git] / no-rust-proc-macro-link.patch
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
5
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.
9
10 Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
11 ---
12  src/gallium/frontends/rusticl/meson.build | 3 ++-
13  1 file changed, 2 insertions(+), 1 deletion(-)
14
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',
23 +  native: true,
24    rust_args : [
25      rusticl_args,
26    ],
27 @@ -361,6 +362,7 @@ librusticl = static_library(
28    gnu_symbol_visibility : 'hidden',
29    rust_crate_type : 'staticlib',
30    rust_args : [
31 +    '--extern', 'rusticl_proc_macros=' + meson.current_build_dir() / 'librusticl_proc_macros.so',
32      rusticl_args,
33    ],
34    link_with : [
35 @@ -368,7 +370,6 @@ librusticl = static_library(
36      libmesa_rust_gen,
37      libmesa_rust_util,
38      rusticl_opencl_gen,
39 -    rusticl_proc_macros,
40    ],
41    dependencies : [
42      idep_rusticl_gen,
43 -- 
44 GitLab
45
This page took 0.063285 seconds and 3 git commands to generate.