diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.com> | 2020-01-15 10:06:32 +0300 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.com> | 2020-01-16 11:33:39 +0300 |
commit | d98e76529d38de9d16c8bbc27c58000efa32beab (patch) | |
tree | a5a4f0e3a31bb5d1616c9e2618e4b4a565cd3ce6 | |
parent | 7a4fea8669cc0602d9bdda6727b855a7cbe8f0e2 (diff) |
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.
-rw-r--r-- | cargo_wrapper.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cargo_wrapper.py b/cargo_wrapper.py index d72211025..c8b143094 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') |