Skip to content

Commit e524424

Browse files
committed
Add a filegroup containing _all_ sources to the libc build rules
These rules already expose a filegroup containing the _dependencies_, but that misses the source files directly in the top level library. Without this filegroup, there isn't a way to access the source files used by libcxx when building it, etc.
1 parent 20ebc7e commit e524424

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,12 @@ def libc_header_library(name, hdrs, deps = [], **kwargs):
247247
**kwargs
248248
)
249249

250+
_libc_srcs_filegroup(
251+
name = name + "_hdrs",
252+
libs = [":" + name],
253+
enforce_headers_only = True,
254+
)
255+
250256
def libc_generated_header(name, hdr, yaml_template, other_srcs = []):
251257
"""Generates a libc header file from YAML template.
252258

0 commit comments

Comments
 (0)