Files
carbon-lang/bazel/check_deps/BUILD
T
Jon Ross-Perkins d51ca271af Refactory the IR/builder relationship (#2342)
I'm thinking about how to handle multiple files, and I think the current IRFactory is useful as a file-focused thing. So shifting/renaming accordingly. (doing this in its own PR to make the history a little cleaner for git's move detection)
2022-10-25 12:55:26 -07:00

39 lines
1.0 KiB
Python

# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
# Exceptions. See /LICENSE for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
# The filegroups establishing root rules for `genquery` invocations can be
# updated by running:
#
# ```
# ./bazel/check_deps/update_roots.py
# ```
filegroup(
name = "non_test_cc_rules",
data = [
"//explorer",
"//installers/local:carbon",
"//migrate_cpp:rewriter",
"//migrate_cpp/cpp_refactoring",
"//toolchain/diagnostics:null_diagnostics",
"//toolchain/driver:carbon",
],
)
genquery(
name = "non_test_cc_deps.txt",
expression = "kind('cc.* rule', deps(//bazel/check_deps:non_test_cc_rules))",
opts = [
"--notool_deps",
"--noimplicit_deps",
],
scope = [":non_test_cc_rules"],
)
py_test(
name = "check_non_test_cc_deps",
srcs = ["check_non_test_cc_deps.py"],
data = [":non_test_cc_deps.txt"],
main = "check_non_test_cc_deps.py",
)