• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# This filegroup is necessary because Bazel requires that every file in the .d
2# file of a compilation action is in a subdirectory of one of the transitive
3# dependencies of the rule being compiled.
4#
5# (this is not an intentional feature but accidentally results from the fact
6# that lines in the .d files must be turned into Artifact instances and thus
7# need a source root. See ArtifactFactory.findSourceRoot() for the pertinent
8# logic)
9#
10# The easiest way to ensure this is to add this filegroup to one of the
11# dependencies of the cc_toolchain. Then the root directory of the repository
12# becomes part of said transitive dependencies and thus every file is in a
13# subdirectory of it.
14filegroup(name="empty", visibility=["//visibility:public"])
15