Skip to content

Commit

Permalink
cc_library support resolve directive (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
gou4shi1 committed Feb 17, 2024
1 parent 4da55f5 commit 805e279
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/rule/rules_cc/cc_library.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ func (s *CcLibrary) Hdrs() []string {

// Deps computes the deps list for the rule.
func (s *CcLibrary) Deps() []string {
return s.RuleConfig.GetDeps()
deps := s.RuleConfig.GetDeps()
resolvedDeps := protoc.ResolveLibraryRewrites(s.RuleConfig.GetRewrites(), s.Config.Library)
deps = append(deps, resolvedDeps...)
return deps
}

// Visibility provides visibility labels.
Expand Down

0 comments on commit 805e279

Please sign in to comment.