Skip to content

Commit 805e279

Browse files
authored
cc_library support resolve directive (#303)
1 parent 4da55f5 commit 805e279

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/rule/rules_cc/cc_library.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ func (s *CcLibrary) Hdrs() []string {
6868

6969
// Deps computes the deps list for the rule.
7070
func (s *CcLibrary) Deps() []string {
71-
return s.RuleConfig.GetDeps()
71+
deps := s.RuleConfig.GetDeps()
72+
resolvedDeps := protoc.ResolveLibraryRewrites(s.RuleConfig.GetRewrites(), s.Config.Library)
73+
deps = append(deps, resolvedDeps...)
74+
return deps
7275
}
7376

7477
// Visibility provides visibility labels.

0 commit comments

Comments
 (0)