Fix aspect that checks for hdrs by allowing the struct to

not have 'hdrs'.
Change: 136723996
This commit is contained in:
A. Unique TensorFlower 2016-10-20 08:40:16 -08:00 committed by TensorFlower Gardener
parent 2f84673670
commit 35468a360e

View File

@ -634,7 +634,7 @@ def transitive_hdrs(name, deps=[], **kwargs):
# the direct dependencies of a target.
def _collect_hdrs_aspect_impl(target, ctx):
allhdrs = set()
for h in ctx.rule.attr.hdrs:
for h in getattr(ctx.rule.attr, 'hdrs', []):
allhdrs = allhdrs | h.files
return struct(tf_hdrs=allhdrs)