diff --git a/DEPS b/DEPS index 625f4220b1..481461228f 100644 --- a/DEPS +++ b/DEPS @@ -221,7 +221,7 @@ deps = { 'condition': 'checkout_fuchsia', }, 'third_party/google_benchmark/src': { - 'url': Var('chromium_url') + '/external/github.com/google/benchmark.git' + '@' + '6e51dcbcc3965b3f4b13d4bab5e43895c1a73290', + 'url': Var('chromium_url') + '/external/github.com/google/benchmark.git' + '@' + '7cb2914292886a1c2625faf5cc84743d1855d21b', }, 'third_party/googletest/src': Var('chromium_url') + '/external/github.com/google/googletest.git' + '@' + 'ae1b7ad4308249bfa928e65d1a33be117fc0992c', diff --git a/third_party/google_benchmark/BUILD.gn b/third_party/google_benchmark/BUILD.gn index 72d8393f4d..fc42dac851 100644 --- a/third_party/google_benchmark/BUILD.gn +++ b/third_party/google_benchmark/BUILD.gn @@ -7,7 +7,10 @@ import("../../gni/v8.gni") if (v8_enable_google_benchmark) { config("benchmark_config") { - include_dirs = [ "src/include" ] + include_dirs = [ + "src/include", + "precompiled_headers", + ] } source_set("google_benchmark") { @@ -25,6 +28,7 @@ if (v8_enable_google_benchmark) { "src/src/benchmark_register.h", "src/src/benchmark_runner.cc", "src/src/benchmark_runner.h", + "src/src/check.cc", "src/src/check.h", "src/src/colorprint.cc", "src/src/colorprint.h", diff --git a/third_party/google_benchmark/precompiled_headers/benchmark/export.h b/third_party/google_benchmark/precompiled_headers/benchmark/export.h new file mode 100644 index 0000000000..a69f5a6ddc --- /dev/null +++ b/third_party/google_benchmark/precompiled_headers/benchmark/export.h @@ -0,0 +1,31 @@ +// Copyright 2022 The V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef THIRD_PARTY_GOOGLE_BENCHMARK_PRECOMPILED_HEADERS_BENCHMARK_EXPORT_H +#define THIRD_PARTY_GOOGLE_BENCHMARK_PRECOMPILED_HEADERS_BENCHMARK_EXPORT_H + +// This is a precompiled header as export.h is usually generated by the +// libraries build system. + +#ifndef BENCHMARK_EXPORT +#define BENCHMARK_EXPORT +#endif + +#ifndef BENCHMARK_NO_EXPORT +#define BENCHMARK_NO_EXPORT +#endif + +#ifndef BENCHMARK_DEPRECATED +#define BENCHMARK_DEPRECATED __attribute__((__deprecated__)) +#endif + +#ifndef BENCHMARK_DEPRECATED_EXPORT +#define BENCHMARK_DEPRECATED_EXPORT BENCHMARK_EXPORT BENCHMARK_DEPRECATED +#endif + +#ifndef BENCHMARK_DEPRECATED_NO_EXPORT +#define BENCHMARK_DEPRECATED_NO_EXPORT BENCHMARK_NO_EXPORT BENCHMARK_DEPRECATED +#endif + +#endif // THIRD_PARTY_GOOGLE_BENCHMARK_PRECOMPILED_HEADERS_BENCHMARK_EXPORT_H