| 1 |
From: =?utf-8?q?Jeremy_B=C3=ADcha?= <[email protected]> |
| 2 |
Date: Thu, 16 Jan 2025 17:01:54 -0500 |
| 3 |
Subject: Patch meson.build |
| 4 |
|
| 5 |
--- |
| 6 |
meson_options.txt | 4 ++++ |
| 7 |
src/meson.build | 5 ----- |
| 8 |
2 files changed, 4 insertions(+), 5 deletions(-) |
| 9 |
|
| 10 |
diff --git a/meson_options.txt b/meson_options.txt |
| 11 |
index 2fb9783..95ff7e7 100644 |
| 12 |
--- a/meson_options.txt |
| 13 |
+++ b/meson_options.txt |
| 14 |
@@ -8,3 +8,7 @@ option( |
| 15 |
value: 'debug', |
| 16 |
description: 'The build profile: "debug" or "release".' |
| 17 |
) |
| 18 |
+option( |
| 19 |
+ 'host_arch', |
| 20 |
+ type: 'string', |
| 21 |
+ ) |
| 22 |
diff --git a/src/meson.build b/src/meson.build |
| 23 |
index d8c6743..f4c280e 100644 |
| 24 |
--- a/src/meson.build |
| 25 |
+++ b/src/meson.build |
| 26 |
@@ -22,8 +22,6 @@ else |
| 27 |
message('Building in release mode') |
| 28 |
endif |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
robots = custom_target( |
| 33 |
'cargo-build', |
| 34 |
build_by_default: true, |
| 35 |
@@ -34,8 +32,6 @@ robots = custom_target( |
| 36 |
install: true, |
| 37 |
install_dir: bindir, |
| 38 |
command: [ |
| 39 |
|
| 40 |
|
| 41 |
cargo, 'build', cargo_options, |
| 42 |
'&&', |
| 43 |
'cp', 'src' / rust_target / meson.project_name(), '@OUTPUT@', |
| 44 |
@@ -44,7 +40,6 @@ robots = custom_target( |
| 45 |
|
| 46 |
test( |
| 47 |
'cargo-test', cargo, |
| 48 |
|
| 49 |
args: ['test', '--no-fail-fast'] + cargo_options, |
| 50 |
depends: [robots], |
| 51 |
timeout: 180 |