aboutsummaryrefslogtreecommitdiff
path: root/absl/container/BUILD.bazel
diff options
context:
space:
mode:
authorEvan Brown <ezb@google.com>2024-03-12 14:29:39 -0700
committerCopybara-Service <copybara-worker@google.com>2024-03-12 14:31:30 -0700
commit038561296676d1cae4a3cee30f8c924befbb6083 (patch)
tree724042c21eb6dfc0913a1eff86ffc7da3e0f4274 /absl/container/BUILD.bazel
parent3c1f9be71ee280539f02e57c5e461b0271f54e91 (diff)
downloadabseil-038561296676d1cae4a3cee30f8c924befbb6083.tar.gz
abseil-038561296676d1cae4a3cee30f8c924befbb6083.tar.bz2
abseil-038561296676d1cae4a3cee30f8c924befbb6083.zip
Add extern templates for common swisstable types.
Motivation: mitigate linker input size increase from swisstable optimizations. Note: the changes in raw_hash_set.h are fixing build errors that happened when adding the explicit instantiations. The change in unchecked_deref is because set iterators have const reference access whereas map iterators have mutable reference access and the function is never actually called for sets (it's used in raw_hash_map) so it wasn't needed before. I'm not sure why the soo_slot/soo_iterator problems didn't cause compile errors earlier. PiperOrigin-RevId: 615174043 Change-Id: Iac5eb2332a76e9b70021156fbb2b8def47a5391d
Diffstat (limited to 'absl/container/BUILD.bazel')
-rw-r--r--absl/container/BUILD.bazel10
1 files changed, 10 insertions, 0 deletions
diff --git a/absl/container/BUILD.bazel b/absl/container/BUILD.bazel
index 0de45263..366bf3cd 100644
--- a/absl/container/BUILD.bazel
+++ b/absl/container/BUILD.bazel
@@ -242,6 +242,7 @@ NOTEST_TAGS_MOBILE = [
cc_library(
name = "flat_hash_map",
+ srcs = ["flat_hash_map.cc"],
hdrs = ["flat_hash_map.h"],
copts = ABSL_DEFAULT_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
@@ -249,7 +250,9 @@ cc_library(
":container_memory",
":hash_function_defaults",
":raw_hash_map",
+ ":raw_hash_set",
"//absl/algorithm:container",
+ "//absl/base:config",
"//absl/base:core_headers",
"//absl/memory",
],
@@ -279,6 +282,7 @@ cc_test(
cc_library(
name = "flat_hash_set",
+ srcs = ["flat_hash_set.cc"],
hdrs = ["flat_hash_set.h"],
copts = ABSL_DEFAULT_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
@@ -287,6 +291,7 @@ cc_library(
":hash_function_defaults",
":raw_hash_set",
"//absl/algorithm:container",
+ "//absl/base:config",
"//absl/base:core_headers",
"//absl/memory",
],
@@ -318,6 +323,7 @@ cc_test(
cc_library(
name = "node_hash_map",
+ srcs = ["node_hash_map.cc"],
hdrs = ["node_hash_map.h"],
copts = ABSL_DEFAULT_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
@@ -326,7 +332,9 @@ cc_library(
":hash_function_defaults",
":node_slot_policy",
":raw_hash_map",
+ ":raw_hash_set",
"//absl/algorithm:container",
+ "//absl/base:config",
"//absl/base:core_headers",
"//absl/memory",
],
@@ -353,6 +361,7 @@ cc_test(
cc_library(
name = "node_hash_set",
+ srcs = ["node_hash_set.cc"],
hdrs = ["node_hash_set.h"],
copts = ABSL_DEFAULT_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
@@ -362,6 +371,7 @@ cc_library(
":node_slot_policy",
":raw_hash_set",
"//absl/algorithm:container",
+ "//absl/base:config",
"//absl/base:core_headers",
"//absl/memory",
],