[AFL] Allow webrtc fuzzers to be used with afl-fuzz.

BUG=chromium:611337

Review-Url: https://codereview.webrtc.org/2143053002
Cr-Commit-Position: refs/heads/master@{#13519}
This commit is contained in:
metzman 2016-07-25 02:14:09 -07:00 committed by Commit bot
parent 2638c6fad8
commit f89a571fcb
2 changed files with 3 additions and 2 deletions

View File

@ -33,6 +33,7 @@ DIRECTORIES = [
'buildtools',
'mojo', # TODO(kjellander): Remove, see webrtc:5629.
'testing',
'third_party/afl',
'third_party/binutils',
'third_party/boringssl',
'third_party/colorama',

View File

@ -227,7 +227,7 @@ config("common_config") {
]
}
if (use_libfuzzer || use_drfuzz) {
if (use_libfuzzer || use_drfuzz || use_afl) {
# Used in Chromium's overrides to disable logging
defines += [ "WEBRTC_UNSAFE_FUZZER_MODE" ]
}
@ -375,7 +375,7 @@ if (rtc_enable_protobuf) {
}
}
if (use_libfuzzer || use_drfuzz) {
if (use_libfuzzer || use_drfuzz || use_afl) {
# This target is only here for gn to discover fuzzer build targets under
# webrtc/test/fuzzers/.
group("webrtc_fuzzers_dummy") {