Lukacs T. Berki | 8a2ffb9 | 2021-04-26 08:25:52 +0200 | [diff] [blame] | 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. |
Chris Parsons | 200cd8f | 2021-04-22 12:21:48 -0400 | [diff] [blame] | 14 | filegroup(name="empty", visibility=["//visibility:public"]) |