From 355f700b4a9891dc3889488540176fd640f08475 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Thu, 15 Jan 2026 09:42:54 -0800 Subject: [PATCH] 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 --- toolchain/base/runtime_sources.bzl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/toolchain/base/runtime_sources.bzl b/toolchain/base/runtime_sources.bzl index 6af2988f920f..c60e433fdcbd 100644 --- a/toolchain/base/runtime_sources.bzl +++ b/toolchain/base/runtime_sources.bzl @@ -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 )