blob: f928935782da146df504482ba4b1048e8297bab5 [file] [log] [blame]
Lukacs T. Berki8a2ffb92021-04-26 08:25:52 +02001# 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.
Chris Parsons200cd8f2021-04-22 12:21:48 -040014filegroup(name="empty", visibility=["//visibility:public"])