Commit 983f0c1c authored by Michael Achenbach's avatar Michael Achenbach Committed by V8 LUCI CQ

[google_benchmark] Suppress -Wdeprecated-declarations

This ports:
https://crrev.com/c/3773795

Bug: chromium:1344570, chromium:1345621
Change-Id: Ie3f8019a259f66900ea6dda878040edec20d4f38
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3773777Reviewed-by: 's avatarNico Weber <thakis@chromium.org>
Auto-Submit: Michael Achenbach <machenbach@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/main@{#81831}
parent 5bd6a123
......@@ -11,11 +11,12 @@ if (v8_enable_google_benchmark) {
"src/include",
"precompiled_headers",
]
if (is_win) {
# TODO(https://crbug.com/1345621): Remove when google benchmark dropped the
# deprecated declarations.
cflags = ["-Wno-deprecated-declarations"]
}
}
# TODO(crbug.com/1344570): Remove once third_party/google_benchmark no longer
# uses std::wstring_convert.
config("benchmark_suppress_warnings") {
cflags = ["-Wno-deprecated-declarations"]
}
source_set("google_benchmark") {
......@@ -69,6 +70,10 @@ if (v8_enable_google_benchmark) {
all_dependent_configs = [ ":benchmark_config" ]
configs += [
":benchmark_suppress_warnings",
]
defines = [
# Tell google_benchmark to always use standard regular expressions.
"HAVE_GNU_POSIX_REGEX=0",
......
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