diff options
author | Derek Mauro <dmauro@google.com> | 2023-10-10 13:29:16 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-10-10 13:30:24 -0700 |
commit | 143e983739333ce4b30320d26bce8594bd24b5f3 (patch) | |
tree | 84515b81a55d409a170ef99683b4c08766829e6a /absl/random/BUILD.bazel | |
parent | 5dc0e78af1c2781644a350d36ae37f0c21e579fe (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/random/BUILD.bazel')
-rw-r--r-- | absl/random/BUILD.bazel | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/absl/random/BUILD.bazel b/absl/random/BUILD.bazel index 19130ff7..173e4dd8 100644 --- a/absl/random/BUILD.bazel +++ b/absl/random/BUILD.bazel @@ -23,7 +23,13 @@ load( "ABSL_TEST_COPTS", ) -package(default_visibility = ["//visibility:public"]) +package( + default_visibility = ["//visibility:public"], + features = [ + "layering_check", + "parse_headers", + ], +) licenses(["notice"]) @@ -171,6 +177,7 @@ cc_test( ":random", "//absl/random/internal:pcg_engine", "//absl/random/internal:sequence_urbg", + "@com_google_googletest//:gtest", "@com_google_googletest//:gtest_main", ], ) @@ -196,6 +203,7 @@ cc_test( "//absl/random/internal:sequence_urbg", "//absl/strings", "//absl/strings:str_format", + "@com_google_googletest//:gtest", "@com_google_googletest//:gtest_main", ], ) @@ -213,6 +221,7 @@ cc_test( ":distributions", ":random", "//absl/random/internal:distribution_test_util", + "@com_google_googletest//:gtest", "@com_google_googletest//:gtest_main", ], ) @@ -226,6 +235,7 @@ cc_test( deps = [ ":distributions", ":random", + "@com_google_googletest//:gtest", "@com_google_googletest//:gtest_main", ], ) @@ -250,6 +260,7 @@ cc_test( "//absl/random/internal:sequence_urbg", "//absl/strings", "//absl/strings:str_format", + "@com_google_googletest//:gtest", "@com_google_googletest//:gtest_main", ], ) @@ -270,6 +281,7 @@ cc_test( "//absl/random/internal:pcg_engine", "//absl/random/internal:sequence_urbg", "//absl/strings", + "@com_google_googletest//:gtest", "@com_google_googletest//:gtest_main", ], ) @@ -299,6 +311,7 @@ cc_test( "//absl/random/internal:sequence_urbg", "//absl/strings", "//absl/strings:str_format", + "@com_google_googletest//:gtest", "@com_google_googletest//:gtest_main", ], ) @@ -321,6 +334,7 @@ cc_test( "//absl/random/internal:sequence_urbg", "//absl/strings", "//absl/strings:str_format", + "@com_google_googletest//:gtest", "@com_google_googletest//:gtest_main", ], ) @@ -344,6 +358,7 @@ cc_test( "//absl/random/internal:sequence_urbg", "//absl/strings", "//absl/strings:str_format", + "@com_google_googletest//:gtest", "@com_google_googletest//:gtest_main", ], ) @@ -365,6 +380,7 @@ cc_test( "//absl/random/internal:pcg_engine", "//absl/random/internal:sequence_urbg", "//absl/strings", + "@com_google_googletest//:gtest", "@com_google_googletest//:gtest_main", ], ) @@ -391,6 +407,7 @@ cc_test( "//absl/random/internal:pcg_engine", "//absl/random/internal:sequence_urbg", "//absl/strings", + "@com_google_googletest//:gtest", "@com_google_googletest//:gtest_main", ], ) @@ -411,6 +428,7 @@ cc_test( "//absl/random/internal:pcg_engine", "//absl/random/internal:sequence_urbg", "//absl/strings", + "@com_google_googletest//:gtest", "@com_google_googletest//:gtest_main", ], ) @@ -426,6 +444,7 @@ cc_test( ":random", "//absl/base:fast_type_id", "//absl/random/internal:sequence_urbg", + "@com_google_googletest//:gtest", "@com_google_googletest//:gtest_main", ], ) @@ -444,6 +463,7 @@ cc_test( ":mock_distributions", ":mocking_bit_gen", ":random", + "@com_google_googletest//:gtest", "@com_google_googletest//:gtest_main", ], ) @@ -461,6 +481,7 @@ cc_test( ":mock_distributions", ":mocking_bit_gen", ":random", + "@com_google_googletest//:gtest", "@com_google_googletest//:gtest_main", ], ) @@ -476,6 +497,7 @@ cc_test( ], deps = [ ":random", + "@com_google_googletest//:gtest", "@com_google_googletest//:gtest_main", ], ) @@ -490,6 +512,7 @@ cc_test( ":random", ":seed_sequences", "//absl/random/internal:nonsecure_base", + "@com_google_googletest//:gtest", "@com_google_googletest//:gtest_main", ], ) |