fuzz: Add support for custom fuzzing library
commit54c9e41d47daa38219a53311cbc1c4e602709aee
authorAlexander Bulekov <alxndr@bu.edu>
Wed, 2 Sep 2020 17:36:51 +0000 (2 13:36 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 Sep 2020 09:43:16 +0000 (8 11:43 +0200)
tree14c154585749976c6b8d634df442777b04576e14
parentc46f76d15869be27e5c9420f6a1733c3cfafc1a1
fuzz: Add support for custom fuzzing library

On oss-fuzz, we must use the LIB_FUZZING_ENGINE and CFLAGS environment
variables, rather than -fsanitize=fuzzer. With this change, when
LIB_FUZZING_ENGINE is set, the --enable-fuzzing configure option will
use that environment variable during the linking stage, rather than
-fsanitize=fuzzer

Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Message-Id: <20200902173652.307222-3-alxndr@bu.edu>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure
tests/qtest/fuzz/meson.build