File: Patch-meson.build.patch

package info (click to toggle)
gnome-robots 1%3A41.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,564 kB
  • sloc: xml: 97; makefile: 25; sh: 7
file content (43 lines) | stat: -rw-r--r-- 1,122 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
From: =?utf-8?q?Jeremy_B=C3=ADcha?= <jeremy.bicha@canonical.com>
Date: Thu, 16 Jan 2025 17:01:54 -0500
Subject: Patch meson.build

---
 meson_options.txt | 4 ++++
 src/meson.build   | 4 ----
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/meson_options.txt b/meson_options.txt
index 2fb9783..95ff7e7 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -8,3 +8,7 @@ option(
     value: 'debug',
     description: 'The build profile: "debug" or "release".'
 )
+option(
+  'host_arch',
+  type: 'string',
+  )
diff --git a/src/meson.build b/src/meson.build
index f124e41..8f6ec1b 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -22,8 +22,6 @@ else
     message('Building in release mode')
 endif
 
-cargo_env = [ 'CARGO_HOME=' + meson.project_build_root() / 'cargo-home' ]
-
 custom_target(
     'cargo-build',
     build_by_default: true,
@@ -34,8 +32,6 @@ custom_target(
     install: true,
     install_dir: bindir,
     command: [
-        'env',
-        cargo_env,
         cargo, 'build', cargo_options,
         '&&',
         'cp', 'src' / rust_target / meson.project_name(), '@OUTPUT@',