summaryrefslogtreecommitdiff
path: root/testing/flare/no-cargo-home.patch
blob: ae2f58b3fef087642e8e53127bdbce326e105c88 (plain)
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
diff --git a/src/meson.build b/src/meson.build
index f82dd01..b37dbed 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -23,7 +23,7 @@ cargo_options = [ '--manifest-path', meson.project_source_root() / 'Cargo.toml'
 cargo_options += [ '--target-dir', meson.project_build_root() / 'target' ]
 
 if get_option('profile') == 'default'
-  cargo_options += [ '--release' ]
+  cargo_options += [ '--release', '--frozen' ]
   rust_target = 'release'
   message('Building in release mode')
 elif get_option('profile') == 'screenshot'
@@ -35,8 +35,6 @@ else
   message('Building in debug mode')
 endif
 
-cargo_env = [ 'CARGO_HOME=' + meson.project_build_root() / 'cargo-home' ]
-
 cargo_build = custom_target(
   'cargo-build',
   build_by_default: true,
@@ -47,8 +45,6 @@ cargo_build = custom_target(
   install_dir: bindir,
   depends: resources,
   command: [
-    'env',
-    cargo_env,
     cargo, 'build',
     cargo_options,
     '&&',