Skip to content

Commit 7c73642

Browse files
committed
wip: add simple bazel repro example
1 parent e7269d5 commit 7c73642

File tree

5 files changed

+625
-0
lines changed

5 files changed

+625
-0
lines changed

examples/standalone_bazel/BUILD

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
load("@rules_cc//cc:defs.bzl", "cc_binary")
2+
3+
cc_binary(
4+
name = "simple_bench",
5+
srcs = ["simple_bench.cpp"],
6+
deps = [
7+
"@codspeed//google_benchmark:benchmark",
8+
],
9+
)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module(name = "standalone_codspeed_example")
2+
3+
bazel_dep(name = "rules_cc", version = "0.0.17")
4+
bazel_dep(name = "bazel_skylib", version = "1.7.1")
5+
bazel_dep(name = "platforms", version = "0.0.10")
6+
bazel_dep(name = "google_benchmark", version = "1.9.1")
7+
8+
# Use local codspeed-cpp for testing
9+
# (In production, use git_override to fetch from GitHub)
10+
bazel_dep(name = "codspeed", version = "1.3.0")
11+
local_path_override(
12+
module_name = "codspeed",
13+
path = "../..",
14+
)

0 commit comments

Comments
 (0)