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