summaryrefslogtreecommitdiff
path: root/absl/container/BUILD.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'absl/container/BUILD.bazel')
-rw-r--r--absl/container/BUILD.bazel28
1 files changed, 27 insertions, 1 deletions
diff --git a/absl/container/BUILD.bazel b/absl/container/BUILD.bazel
index 87fc7349..acdbc473 100644
--- a/absl/container/BUILD.bazel
+++ b/absl/container/BUILD.bazel
@@ -447,8 +447,20 @@ cc_library(
)
cc_library(
+ name = "hashtablez_force_sampling",
+ srcs = ["internal/hashtablez_force_sampling.cc"],
+ copts = ABSL_DEFAULT_COPTS,
+ deps = [
+ ":hashtablez_sampler",
+ ],
+)
+
+cc_library(
name = "hashtablez_sampler",
- srcs = ["internal/hashtablez_sampler.cc"],
+ srcs = [
+ "internal/hashtablez_sampler.cc",
+ "internal/hashtablez_sampler_force_weak_definition.cc",
+ ],
hdrs = ["internal/hashtablez_sampler.h"],
copts = ABSL_DEFAULT_COPTS,
deps = [
@@ -476,6 +488,20 @@ cc_test(
],
)
+cc_test(
+ name = "hashtablez_force_sampling_test",
+ srcs = ["internal/hashtablez_force_sampling_test.cc"],
+ tags = [
+ "no_test_darwin_x86_64",
+ "no_test_msvc_x64",
+ ],
+ deps = [
+ ":hashtablez_force_sampling",
+ ":hashtablez_sampler",
+ "@com_google_googletest//:gtest_main",
+ ],
+)
+
cc_library(
name = "node_hash_policy",
hdrs = ["internal/node_hash_policy.h"],