提交 35468a36 编写于 作者: A A. Unique TensorFlower 提交者: TensorFlower Gardener

Fix aspect that checks for hdrs by allowing the struct to

not have 'hdrs'.
Change: 136723996
上级 2f846736
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册