From 089347a5062e47e2761f8f262a21eafe14f7142a Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Sat, 30 Sep 2023 04:19:28 +0000 Subject: [PATCH] [tint] Don't link 'benchmark_main' target Tint provides its own main(). Also add the benchmark target to the root BUILD.gn to have it built implicitly. Change-Id: Iab254fde50f75e2ecd03c3b226883d2fb06c1585 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/154400 Commit-Queue: Ben Clayton Reviewed-by: Antonio Maiorano Kokoro: Ben Clayton Kokoro: Kokoro Auto-Submit: Ben Clayton Commit-Queue: Antonio Maiorano --- BUILD.gn | 3 +++ src/tint/BUILD.gn | 5 +---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index b8e3c10149f..1c719a380e8 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -34,6 +34,9 @@ group("all") { if (tint_build_unittests) { deps += [ "src/tint/cmd/test:test_cmd" ] } + if (tint_build_benchmarks) { + deps += [ "src/tint/cmd/bench:bench_cmd" ] + } if (dawn_standalone) { deps += [ "src/dawn/samples", diff --git a/src/tint/BUILD.gn b/src/tint/BUILD.gn index 2daaf3e2ba8..a91da430be5 100644 --- a/src/tint/BUILD.gn +++ b/src/tint/BUILD.gn @@ -197,10 +197,7 @@ if (tint_build_unittests) { if (tint_build_benchmarks) { group("google_benchmark") { testonly = true - public_deps = [ - "//third_party/google_benchmark", - "//third_party/google_benchmark:benchmark_main", - ] + public_deps = [ "//third_party/google_benchmark" ] } }