mirror of
https://github.com/systemd/systemd.git
synced 2025-03-03 16:58:37 +03:00
meson: don't build fuzzers if tests are disabled
Fuzzers are just special tests anyways and without this, building with '-Dtests=false' fails with: .../src/fuzz/fuzz-main.c:20: undefined reference to `test_setup_logging'
This commit is contained in:
parent
a9353a5c5b
commit
5996740a09
@ -2768,6 +2768,7 @@ endif
|
|||||||
|
|
||||||
fuzzer_exes = []
|
fuzzer_exes = []
|
||||||
|
|
||||||
|
if get_option('tests') != 'false'
|
||||||
foreach tuple : fuzzers
|
foreach tuple : fuzzers
|
||||||
sources = tuple[0]
|
sources = tuple[0]
|
||||||
link_with = tuple[1].length() > 0 ? tuple[1] : [libshared]
|
link_with = tuple[1].length() > 0 ? tuple[1] : [libshared]
|
||||||
@ -2792,6 +2793,7 @@ foreach tuple : fuzzers
|
|||||||
c_args : defs,
|
c_args : defs,
|
||||||
install : false)
|
install : false)
|
||||||
endforeach
|
endforeach
|
||||||
|
endif
|
||||||
|
|
||||||
run_target('fuzzers',
|
run_target('fuzzers',
|
||||||
depends : fuzzer_exes,
|
depends : fuzzer_exes,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user