diff --git a/test/benchmarks/cpp/BUILD.gn b/test/benchmarks/cpp/BUILD.gn index 6c57952841..07eeb94f15 100644 --- a/test/benchmarks/cpp/BUILD.gn +++ b/test/benchmarks/cpp/BUILD.gn @@ -25,6 +25,9 @@ if (v8_enable_google_benchmark) { sources = [ "empty.cc" ] - deps = [ "//third_party/google_benchmark:benchmark_main" ] + deps = [ + "//:v8_libbase", + "//third_party/google_benchmark:benchmark_main", + ] } } diff --git a/third_party/google_benchmark/BUILD.gn b/third_party/google_benchmark/BUILD.gn index 933f7df8f6..3df88e241f 100644 --- a/third_party/google_benchmark/BUILD.gn +++ b/third_party/google_benchmark/BUILD.gn @@ -69,6 +69,6 @@ if (v8_enable_google_benchmark) { source_set("benchmark_main") { testonly = true sources = [ "src/src/benchmark_main.cc" ] - deps = [ ":google_benchmark" ] + public_deps = [ ":google_benchmark" ] } }