Skip to content

Commit

Permalink
Use the bzlmod name for google benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
malkia committed Jun 21, 2024
1 parent 4baa08c commit c9d9ecb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ bazel_dep(name = "rules_cc", version = "0.0.9")
bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "platforms", version = "0.0.10")

bazel_dep(name = "google_benchmark", version = "1.8.4", dev_dependency = True, repo_name = "com_github_google_benchmark")
bazel_dep(name = "google_benchmark", version = "1.8.4", dev_dependency = True)
bazel_dep(name = "googletest", version = "1.14.0.bcr.1", dev_dependency = True, repo_name = "com_google_googletest")

bazel_dep(name = "nlohmann_json", version = "3.11.3", repo_name = "github_nlohmann_json")
Expand Down
4 changes: 2 additions & 2 deletions bazel/otel_cc_benchmark.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def otel_cc_benchmark(name, srcs, deps, tags = [""]):
native.cc_binary(
name = name,
srcs = srcs,
deps = deps + ["@com_github_google_benchmark//:benchmark"],
deps = deps + ["@google_benchmark//:benchmark"],
tags = tags + ["manual"],
)

Expand All @@ -44,7 +44,7 @@ def otel_cc_benchmark(name, srcs, deps, tags = [""]):
native.cc_test(
name = name + "_smoketest",
srcs = srcs,
deps = deps + ["@com_github_google_benchmark//:benchmark"],
deps = deps + ["@google_benchmark//:benchmark"],
args = ["--benchmark_min_time=1x"],
tags = tags + ["benchmark"],
)

0 comments on commit c9d9ecb

Please sign in to comment.