From 94bbe009c80461a9e6963fdf17663842c579e71d Mon Sep 17 00:00:00 2001 From: efyx Date: Tue, 1 Dec 2020 14:13:10 +0100 Subject: [PATCH] Also collect source files from non_arc_srcs attributes --- aspects.bzl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aspects.bzl b/aspects.bzl index 27c5031..af52c17 100644 --- a/aspects.bzl +++ b/aspects.bzl @@ -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"]]