From d98e76529d38de9d16c8bbc27c58000efa32beab Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 15 Jan 2020 12:36:32 +0530 Subject: [PATCH] meson: build tests, bins and examples Best to build as much as possible so we can detect build breakage earlier and we won't have to build tests when running them. --- cargo_wrapper.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cargo_wrapper.py b/cargo_wrapper.py index d7221102..c8b14309 100644 --- a/cargo_wrapper.py +++ b/cargo_wrapper.py @@ -29,8 +29,9 @@ env['PKG_CONFIG_PATH'] = ':'.join(pkg_config_path) if command == 'build': # cargo build ext = sys.argv[7] - cargo_cmd = ['cargo', 'build', '--manifest-path', - os.path.join(meson_current_source_dir, 'Cargo.toml'), + cargo_cmd = ['cargo', 'build', '--all-targets', + '--manifest-path', os.path.join( + meson_current_source_dir, 'Cargo.toml'), '--workspace'] if target == 'release': cargo_cmd.append('--release')