]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: no longer skip dependencies when fuzzers are built locally
authorEvgeny Vereshchagin <evvers@ya.ru>
Sun, 9 Jan 2022 21:52:14 +0000 (21:52 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 10 Jan 2022 08:42:38 +0000 (09:42 +0100)
to make it easier to fuzz code that uses external libraries like libelf/libdw.

The dependencies are skipped on OSS-Fuzz because they aren't available
at runtime if they aren't linked statically. This restriction can safely
be lifted when the fuzzers are built locally with all the dependencies
installed. As far as I know there is at least one fuzz target in the systemd
repository that can benefit from this: https://github.com/systemd/systemd/issues/11018

meson.build

index 24b7ab8fd6011ecf10e825292cd865d42a1b2664..021bcd003c134298fd36c59bfc9e83b7a4e86228 100644 (file)
@@ -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 or want_libfuzzer
+skip_deps = want_ossfuzz
 fuzzer_build = want_ossfuzz or want_libfuzzer
 
 # Create a title-less summary section early, so it ends up first in the output.