blob: ad858dad6d952a7daf4598d5b75abfe10b3ffa37 [file] [log] [blame]
package(default_applicable_licenses = ["//third_party/crubit:license"])
cc_library(
name = "bindings_support",
hdrs = [
"cxx20_backports.h",
"offsetof.h",
"return_value_slot.h",
],
visibility = ["//:__subpackages__"],
# It is important to be thoughtful when adding new dependencies for
# `bindings_support` (and possibly other targets in this BUILD file).
# Using mature Abseil APIs seems okay - we should be able to assume that
# Crubit users have a version of Abseil that is relatively recent (although
# we can't rely on an exact version and/or exact absl/base/options.h).
deps = [],
)
cc_test(
name = "offsetof_test",
srcs = ["offsetof_test.cc"],
deps = [
":bindings_support",
"@com_google_googletest//:gtest_main",
],
)
cc_test(
name = "return_value_slot_test",
srcs = ["return_value_slot_test.cc"],
deps = [
":bindings_support",
"@absl//absl/log:check",
"@com_google_googletest//:gtest_main",
],
)