blob: 7750a9d112592a927c52a2e06f649fdd0eaabe9b [file] [log] [blame]
package(default_applicable_licenses = ["//:license"])
cc_library(
name = "bindings_support",
hdrs = [
"cxx20_backports.h",
"offsetof.h",
"return_value_slot.h",
],
visibility = [
"//visibility:public",
],
# 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",
],
)