BUILD 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. # The filegroups establishing root rules for `genquery` invocations can be
  5. # updated by running:
  6. #
  7. # ```
  8. # ./bazel/check_deps/update_roots.py
  9. # ```
  10. filegroup(
  11. name = "non_test_cc_rules",
  12. data = [
  13. "//explorer",
  14. "//installers/local:carbon",
  15. "//migrate_cpp:rewriter",
  16. "//migrate_cpp/cpp_refactoring",
  17. "//toolchain/diagnostics:null_diagnostics",
  18. "//toolchain/driver:carbon",
  19. ],
  20. )
  21. genquery(
  22. name = "non_test_cc_deps.txt",
  23. expression = "kind('cc.* rule', deps(//bazel/check_deps:non_test_cc_rules))",
  24. opts = [
  25. "--notool_deps",
  26. "--noimplicit_deps",
  27. ],
  28. scope = [":non_test_cc_rules"],
  29. )
  30. py_test(
  31. name = "check_non_test_cc_deps",
  32. srcs = ["check_non_test_cc_deps.py"],
  33. data = [":non_test_cc_deps.txt"],
  34. main = "check_non_test_cc_deps.py",
  35. )