Add a dependency for the StringRef.h header (#6605)

Without this we have problems with builds that enable header parsing.

---------

Co-authored-by: Dana Jansens <danakj@orodu.net>
This commit is contained in:
Chandler Carruth
2026-01-15 17:42:54 +00:00
committed by GitHub
co-authored by Dana Jansens
parent 9ee2177dd4
commit 355f700b4a
+5 -1
View File
@@ -167,7 +167,7 @@ generate_runtime_sources_h = rule(
},
)
def generate_runtime_sources_cc_library(name, **kwargs):
def generate_runtime_sources_cc_library(name, deps = [], **kwargs):
"""Generates a `runtime_sources.h` header and a `cc_library` rule for it.
This first generates the header file with variables describing the runtime
@@ -181,5 +181,9 @@ def generate_runtime_sources_cc_library(name, **kwargs):
cc_library(
name = name,
hdrs = ["runtime_sources.h"],
deps = [
# For StringRef.h
"@llvm-project//llvm:Support",
] + deps,
**kwargs
)