aboutsummaryrefslogtreecommitdiff
path: root/third_party/libprotobuf-mutator/fuzzable_proto_library.gni
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/libprotobuf-mutator/fuzzable_proto_library.gni')
-rw-r--r--third_party/libprotobuf-mutator/fuzzable_proto_library.gni12
1 files changed, 3 insertions, 9 deletions
diff --git a/third_party/libprotobuf-mutator/fuzzable_proto_library.gni b/third_party/libprotobuf-mutator/fuzzable_proto_library.gni
index fee136c6..2d357db7 100644
--- a/third_party/libprotobuf-mutator/fuzzable_proto_library.gni
+++ b/third_party/libprotobuf-mutator/fuzzable_proto_library.gni
@@ -6,7 +6,7 @@
# non-fuzzer builds (ie: use_libfuzzer=false). However, in fuzzer builds, the
# proto_library is built with the full protobuf runtime and any "optimize_for =
# LITE_RUNTIME" options are ignored. This is done because libprotobuf-mutator
-# needs the full protobuf runtime, but proto_libraries shipped in chrome must
+# needs the full protobuf runtime, but proto_libraries shipped in Chrome must
# use the optimize for LITE_RUNTIME option which is incompatible with the full
# protobuf runtime. tl;dr: A fuzzable_proto_library is a proto_library that can
# be fuzzed with libprotobuf-mutator and shipped in Chrome.
@@ -16,18 +16,12 @@ import("//testing/libfuzzer/fuzzer_test.gni")
import("//third_party/protobuf/proto_library.gni")
template("fuzzable_proto_library") {
- # Only make the proto library fuzzable if we are doing a build that we can
- # use LPM on (i.e. libFuzzer not on Chrome OS).
- if (use_libfuzzer && current_toolchain != "//build/toolchain/cros:target") {
+ if (use_libfuzzer) {
proto_library("proto_library_" + target_name) {
forward_variables_from(invoker, "*")
assert(current_toolchain == host_toolchain)
- if (!defined(proto_deps)) {
- proto_deps = []
- }
- proto_deps +=
- [ "//third_party/libprotobuf-mutator:override_lite_runtime_plugin" ]
+ cc_generator_options = "speed"
extra_configs = [ "//third_party/protobuf:protobuf_config" ]
}