summaryrefslogtreecommitdiff
path: root/absl/debugging
diff options
context:
space:
mode:
authorGravatar Derek Mauro <dmauro@google.com>2023-10-10 13:29:16 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2023-10-10 13:30:24 -0700
commit143e983739333ce4b30320d26bce8594bd24b5f3 (patch)
tree84515b81a55d409a170ef99683b4c08766829e6a /absl/debugging
parent5dc0e78af1c2781644a350d36ae37f0c21e579fe (diff)
Bazel: Support layering_check and parse_headers
The layering_check feature ensures that rules that include a header explicitly depend on a rule that exports that header. Compiler support is required, and currently only Clang 16+ supports diagnoses layering_check failures. The parse_headers feature ensures headers are self-contained by compiling them with -fsyntax-only on supported compilers. PiperOrigin-RevId: 572350144 Change-Id: I37297f761566d686d9dd58d318979d688b7e36d1
Diffstat (limited to 'absl/debugging')
-rw-r--r--absl/debugging/BUILD.bazel10
1 files changed, 10 insertions, 0 deletions
diff --git a/absl/debugging/BUILD.bazel b/absl/debugging/BUILD.bazel
index f50c73f3..5baff7a1 100644
--- a/absl/debugging/BUILD.bazel
+++ b/absl/debugging/BUILD.bazel
@@ -23,6 +23,11 @@ load(
package(
default_visibility = ["//visibility:public"],
+ features = [
+ "header_modules",
+ "layering_check",
+ "parse_headers",
+ ],
)
licenses(["notice"])
@@ -62,6 +67,7 @@ cc_test(
deps = [
":stacktrace",
"//absl/base:core_headers",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -240,6 +246,7 @@ cc_test(
"//absl/base:core_headers",
"//absl/log",
"//absl/memory",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -266,6 +273,7 @@ cc_test(
":leak_check",
"//absl/base:config",
"//absl/log",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -283,6 +291,7 @@ cc_binary(
deps = [
":leak_check",
"//absl/log",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -312,6 +321,7 @@ cc_test(
":stack_consumption",
"//absl/base:core_headers",
"//absl/log",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)