Skip to content

Commit

Permalink
Also collect source files from non_arc_srcs attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
efyx committed Dec 1, 2020
1 parent aa58494 commit 94bbe00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aspects.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ def _sources(target, ctx):
srcs += [f for src in ctx.rule.attr.srcs for f in src.files.to_list()]
if "hdrs" in dir(ctx.rule.attr):
srcs += [f for src in ctx.rule.attr.hdrs for f in src.files.to_list()]
if "non_arc_srcs" in dir(ctx.rule.attr):
srcs += [f for src in ctx.rule.attr.non_arc_srcs for f in src.files.to_list()]

if ctx.rule.kind == "cc_proto_library":
srcs += [f for f in target.files.to_list() if f.extension in ["h", "cc"]]
Expand Down

0 comments on commit 94bbe00

Please sign in to comment.