BUILD 1021 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. # Exceptions. See /LICENSE for license information.
  3. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. load("@rules_python//python:defs.bzl", "py_test")
  5. # The filegroups establishing root rules for `genquery` invocations can be
  6. # updated by running:
  7. #
  8. # ```
  9. # ./bazel/check_deps/update_roots.py
  10. # ```
  11. filegroup(
  12. name = "non_test_cc_rules",
  13. data = [
  14. "//toolchain/install:carbon_toolchain_tar",
  15. "//toolchain/install:carbon_toolchain_tar_gz",
  16. ],
  17. tags = ["manual"],
  18. )
  19. genquery(
  20. name = "non_test_cc_deps.txt",
  21. expression =
  22. "kind('cc.* rule', deps(//bazel/check_deps:non_test_cc_rules))",
  23. opts = [
  24. "--notool_deps",
  25. "--noimplicit_deps",
  26. ],
  27. scope = [":non_test_cc_rules"],
  28. )
  29. py_test(
  30. name = "check_non_test_cc_deps",
  31. size = "small",
  32. srcs = ["check_non_test_cc_deps.py"],
  33. data = [":non_test_cc_deps.txt"],
  34. main = "check_non_test_cc_deps.py",
  35. )