Skip to content

Commit 3ef05b5

Browse files
committed
Switch benchmark config to use linkstatic = True
1 parent a2ec9c9 commit 3ef05b5

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

build/wd_cc_benchmark.bzl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,7 @@ def wd_cc_benchmark(
1414
cc_test(
1515
name = name,
1616
defines = ["WD_IS_BENCHMARK"],
17-
# Use shared linkage for benchmarks, matching the approach used for tests. Unfortunately,
18-
# bazel does not support shared linkage on macOS and it is broken on Windows, so only
19-
# enable this on Linux.
20-
linkstatic = select({
21-
"@platforms//os:linux": 0,
22-
"//conditions:default": 1,
23-
}),
17+
linkstatic = True,
2418
linkopts = linkopts + select({
2519
"@//:use_dead_strip": ["-Wl,-dead_strip", "-Wl,-no_exported_symbols"],
2620
"//conditions:default": [""],

0 commit comments

Comments
 (0)