[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/+/3773777
Reviewed-by: Nico 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}
This commit is contained in:
Michael Achenbach 2022-07-19 20:58:02 +02:00 committed by V8 LUCI CQ
parent 5bd6a1231e
commit 983f0c1c46

View File

@ -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",