Skip to content

Commit

Permalink
Make provides add dependencies too (#2915)
Browse files Browse the repository at this point in the history
* Make provides add dependencies too

* okay need to check it's not circular
  • Loading branch information
peterebden authored Oct 12, 2023
1 parent cb7bf7a commit cf51ad0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/build_target.go
Original file line number Diff line number Diff line change
Expand Up @@ -1175,6 +1175,9 @@ func (target *BuildTarget) AddProvide(language string, label BuildLabel) {
} else {
target.Provides[language] = label
}
if label != target.Label {
target.AddDependency(label)
}
}

// ProvideFor returns the build label that we'd provide for the given target.
Expand Down

0 comments on commit cf51ad0

Please sign in to comment.