Commit b620c559 authored by Akos Kiss's avatar Akos Kiss Committed by Commit Bot

Add use_external_fuzzing_engine build argument

If set, the new argument allows //testing/libfuzzer/unittest_main.cc to
be used as fuzzer test driver even if use_libfuzzer and use_afl are both
false.

Change-Id: I3ce5ee97ce244ba1e09393ddf0305881688ec64d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2138434Reviewed-by: default avatarJonathan Metzman <metzman@chromium.org>
Reviewed-by: default avatarMax Moroz <mmoroz@chromium.org>
Commit-Queue: Jonathan Metzman <metzman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#757602}
parent 596758c7
...@@ -37,6 +37,7 @@ Ahmet Emir Ercin <ahmetemiremir@gmail.com> ...@@ -37,6 +37,7 @@ Ahmet Emir Ercin <ahmetemiremir@gmail.com>
Ajay Berwal <a.berwal@samsung.com> Ajay Berwal <a.berwal@samsung.com>
Ajay Berwal <ajay.berwal@samsung.com> Ajay Berwal <ajay.berwal@samsung.com>
Ajith Kumar V <ajith.v@samsung.com> Ajith Kumar V <ajith.v@samsung.com>
Akos Kiss <akiss@inf.u-szeged.hu>
Aku Kotkavuo <a.kotkavuo@partner.samsung.com> Aku Kotkavuo <a.kotkavuo@partner.samsung.com>
Aldo Culquicondor <alculquicondor@gmail.com> Aldo Culquicondor <alculquicondor@gmail.com>
Aleksandar Stojiljkovic <aleksandar.stojiljkovic@intel.com> Aleksandar Stojiljkovic <aleksandar.stojiljkovic@intel.com>
......
...@@ -79,6 +79,9 @@ declare_args() { ...@@ -79,6 +79,9 @@ declare_args() {
# Compile for fuzzing with AFL. # Compile for fuzzing with AFL.
use_afl = false use_afl = false
# Compile for fuzzing with an external engine (e.g., Grammarinator).
use_external_fuzzing_engine = false
# Enables core ubsan security features. Will later be removed once it matches # Enables core ubsan security features. Will later be removed once it matches
# is_ubsan. # is_ubsan.
is_ubsan_security = false is_ubsan_security = false
...@@ -152,7 +155,7 @@ use_prebuilt_instrumented_libraries = is_msan ...@@ -152,7 +155,7 @@ use_prebuilt_instrumented_libraries = is_msan
# Whether we are doing a fuzzer build. Normally this should be checked instead # Whether we are doing a fuzzer build. Normally this should be checked instead
# of checking "use_libfuzzer || use_afl" because often developers forget to # of checking "use_libfuzzer || use_afl" because often developers forget to
# check for "use_afl". # check for "use_afl".
use_fuzzing_engine = use_libfuzzer || use_afl use_fuzzing_engine = use_libfuzzer || use_afl || use_external_fuzzing_engine
# Args that are in turn dependent on other args must be in a separate # Args that are in turn dependent on other args must be in a separate
# declare_args block. User overrides are only applied at the end of a # declare_args block. User overrides are only applied at the end of a
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment