diff options
author | Geoffrey Martin-Noble <gcmn@google.com> | 2021-07-27 17:01:19 -0700 |
---|---|---|
committer | Geoffrey Martin-Noble <gcmn@google.com> | 2021-07-29 18:12:39 -0700 |
commit | d983499543ee9f5b2fec3d437e0a15acacb9586d (patch) | |
tree | a396183c6c9ff64219876aad1468c2565b0b0365 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | f3a8a7b91e54884a45895aa10e8433c2ce8e16ba (diff) | |
download | llvm-d983499543ee9f5b2fec3d437e0a15acacb9586d.zip llvm-d983499543ee9f5b2fec3d437e0a15acacb9586d.tar.gz llvm-d983499543ee9f5b2fec3d437e0a15acacb9586d.tar.bz2 |
[Bazel] Make td_library usable as data
This patch makes it possible to list a td_library as a rule's data
attribute and get its source files and all its transitive dependencies
at runtime. This is useful for, e.g. shell tests running tblgen.
Note that this is a bit different from how a "normal" (e.g. C++) library
rule would work because those have actual library outputs and the
td_library rule just bundles some source files and includes. If someone
wanted to make use of the includes, they would have to access the TdInfo
provider, but this keeps simple things simple.
Reviewed By: jpienaar
Differential Revision: https://reviews.llvm.org/D106922
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions