Commit 342d2451 authored by Jonathan Metzman's avatar Jonathan Metzman Committed by Commit Bot

[LPM][libFuzzer][Windows]Enable building libprotobuf-mutator on Windows

Bug: 884560
Change-Id: I7e6ac6869b2e2e068214cc5944d73a22549e5a70
Reviewed-on: https://chromium-review.googlesource.com/1247189Reviewed-by: default avatarMax Moroz <mmoroz@chromium.org>
Commit-Queue: Jonathan Metzman <metzman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#594710}
parent 933a6ce7
......@@ -10,36 +10,32 @@ config("include_config") {
source_set("libprotobuf-mutator") {
testonly = true
# Dont allow building on windows to avoid tryjob failure. This is OK since
# libFuzzer doesn't build on windows anyway.
if (!is_win) {
configs += [ ":include_config" ]
configs += [ ":include_config" ]
# Remove *San and coverage for a performance boost.
configs -= not_fuzzed_remove_configs
configs += [ "//build/config/sanitizers:not_fuzzed" ]
# Remove *San and coverage for a performance boost.
configs -= not_fuzzed_remove_configs
configs += [ "//build/config/sanitizers:not_fuzzed" ]
public_configs = [ ":include_config" ]
sources = [
"src/src/binary_format.cc",
"src/src/libfuzzer/libfuzzer_macro.cc",
"src/src/libfuzzer/libfuzzer_mutator.cc",
"src/src/mutator.cc",
"src/src/text_format.cc",
"src/src/utf8_fix.cc",
]
public_configs = [ ":include_config" ]
sources = [
"src/src/binary_format.cc",
"src/src/libfuzzer/libfuzzer_macro.cc",
"src/src/libfuzzer/libfuzzer_mutator.cc",
"src/src/mutator.cc",
"src/src/text_format.cc",
"src/src/utf8_fix.cc",
]
# Allow users of LPM to use protobuf reflection and other features from
# protobuf_full.
public_deps = [
"//third_party/protobuf:protobuf_full",
]
# Allow users of LPM to use protobuf reflection and other features from
# protobuf_full.
public_deps = [
"//third_party/protobuf:protobuf_full",
]
# Let ClusterFuzz builders know to not build targets that depend on
# libprotobuf-mutator for AFL.
if (use_afl) {
all_dependent_configs = [ "//testing/libfuzzer:no_clusterfuzz" ]
}
# Let ClusterFuzz builders know to not build targets that depend on
# libprotobuf-mutator for AFL.
if (use_afl) {
all_dependent_configs = [ "//testing/libfuzzer:no_clusterfuzz" ]
}
}
......
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