From: Matthias Geiger Date: Thu, 7 May 2026 14:40:45 +0200 Subject: Patch meson.build to allow building with Debian tooling Forwarded: not-needed --- meson.build | 4 +--- meson_options.txt | 5 ++++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/meson.build b/meson.build index 568264a..57b6c1f 100644 --- a/meson.build +++ b/meson.build @@ -20,13 +20,11 @@ bindir = get_option('prefix') / get_option('bindir') datadir = get_option('prefix') / get_option('datadir') cargo_target_dir = meson.project_build_root() / 'cargo-target' -cargo_home = meson.project_build_root() / 'cargo-home' cargo_manifest = meson.project_source_root() / 'Cargo.toml' cargo_bin = find_program('cargo') cargo_env = environment() -cargo_env.set('CARGO_HOME', cargo_home) cargo_options = ['--manifest-path', cargo_manifest] cargo_options += ['--target-dir', cargo_target_dir] @@ -193,7 +191,7 @@ foreach binary_name : binaries output: binary_name, command: [ 'cp', - cargo_target_dir / rust_target / binary_name, + cargo_target_dir / get_option('host_arch') / 'release' / binary_name, '@OUTPUT@', ], ) diff --git a/meson_options.txt b/meson_options.txt index a3a3bb3..1fffe2a 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -4,4 +4,7 @@ option( choices: ['release', 'dev'], value: 'release', ) - +option( + 'host_arch', + type: 'string', +)