diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2022-02-22 10:49:46 +0000 |
---|---|---|
committer | Evgeny Vereshchagin <evvers@ya.ru> | 2022-02-22 11:17:21 +0000 |
commit | 678ba020337d93552251e2c05bd68c84218f8c8b (patch) | |
tree | ea45f58157eb6677c0d66fe75e3abf9cc1268946 | |
parent | 22049270c0432b36e870f9acef6ab7336e153238 (diff) | |
download | systemd-678ba020337d93552251e2c05bd68c84218f8c8b.tar.gz |
meson: allow skipping optional dependencies
mostly to make sure that systemd is buildable without some dependencies
but other than that it should make it easier to build it with MSan without
having to compile all the dependencies with MSan.
-rw-r--r-- | meson.build | 2 | ||||
-rw-r--r-- | meson_options.txt | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 428ebb2102..371a9ce751 100644 --- a/meson.build +++ b/meson.build @@ -40,7 +40,7 @@ if want_ossfuzz and want_libfuzzer error('only one of oss-fuzz or llvm-fuzz can be specified') endif -skip_deps = want_ossfuzz +skip_deps = want_ossfuzz or get_option('skip-deps') fuzzer_build = want_ossfuzz or want_libfuzzer # Create a title-less summary section early, so it ends up first in the output. diff --git a/meson_options.txt b/meson_options.txt index fa8c0b5e3f..5d635748d5 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -484,3 +484,6 @@ option('analyze', type: 'boolean', value: 'true', option('bpf-framework', type : 'combo', choices : ['auto', 'true', 'false'], description: 'build BPF programs from source code in restricted C') + +option('skip-deps', type : 'boolean', value : 'false', + description : 'skip optional dependencies') |