Commit d1c70079 authored by Peter Marshall's avatar Peter Marshall Committed by Commit Bot

[tracing] Add no_chromium_code config and suppress warning in protobuf

Add no_chromium_code config - this is required when removing the
chromium_code config.

Fix a warning that occurs when compiling protobuf_full by suppressing
warnings for not marking overriding functions with override.

Change-Id: I7f71a24b95dc3ef7d327481581aaa217407ee2cf
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1569441Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Reviewed-by: 's avatarNico Weber <thakis@chromium.org>
Commit-Queue: Peter Marshall <petermarshall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#60894}
parent 66ed7761
......@@ -4323,6 +4323,9 @@ if (!build_with_chromium && v8_use_perfetto) {
defines = [ "HAVE_PTHREAD=1" ]
if (is_clang) {
cflags = [
"-Wno-unused-private-field",
"-Wno-unused-function",
"-Wno-inconsistent-missing-override",
"-Wno-unknown-warning-option",
"-Wno-enum-compare-switch",
"-Wno-user-defined-warnings",
......@@ -4359,7 +4362,10 @@ if (!build_with_chromium && v8_use_perfetto) {
"third_party/protobuf/src/google/protobuf/wire_format_lite.cc",
]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ ":protobuf_config" ]
configs += [
"//build/config/compiler:no_chromium_code",
":protobuf_config",
]
public_configs = [ ":protobuf_gen_config" ]
}
......@@ -4425,7 +4431,10 @@ if (!build_with_chromium && v8_use_perfetto) {
"third_party/protobuf/src/google/protobuf/wrappers.pb.cc",
]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ ":protobuf_config" ]
configs += [
"//build/config/compiler:no_chromium_code",
":protobuf_config",
]
public_configs = [ ":protobuf_gen_config" ]
}
......@@ -4518,7 +4527,10 @@ if (!build_with_chromium && v8_use_perfetto) {
"third_party/protobuf/src/google/protobuf/compiler/zip_writer.cc",
]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ ":protobuf_config" ]
configs += [
"//build/config/compiler:no_chromium_code",
":protobuf_config",
]
public_configs = [ ":protobuf_gen_config" ]
}
......@@ -4531,6 +4543,7 @@ if (!build_with_chromium && v8_use_perfetto) {
"third_party/protobuf/src/google/protobuf/compiler/main.cc",
]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
}
} # host_toolchain
} # if (!build_with_chromium && v8_use_perfetto)
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