mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 19:50:14 +01:00
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:
co-authored by
Dana Jansens
parent
9ee2177dd4
commit
355f700b4a
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user