From: =?utf-8?q?Jeremy_B=C3=ADcha?= Date: Thu, 16 Jan 2025 17:01:54 -0500 Subject: Patch meson.build --- meson_options.txt | 4 ++++ src/meson.build | 5 ----- 2 files changed, 4 insertions(+), 5 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 d8c6743..f4c280e 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' ] - robots = custom_target( 'cargo-build', build_by_default: true, @@ -34,8 +32,6 @@ robots = custom_target( install: true, install_dir: bindir, command: [ - 'env', - cargo_env, cargo, 'build', cargo_options, '&&', 'cp', 'src' / rust_target / meson.project_name(), '@OUTPUT@', @@ -44,7 +40,6 @@ robots = custom_target( test( 'cargo-test', cargo, - env: cargo_env, args: ['test', '--no-fail-fast'] + cargo_options, depends: [robots], timeout: 180