From 40f50439762347c06bbf4e4c7613be1f4b619bdc Mon Sep 17 00:00:00 2001 From: Peter Ebden Date: Mon, 2 Oct 2023 16:17:05 +0100 Subject: [PATCH] okay need to check it's not circular --- src/core/build_target.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/build_target.go b/src/core/build_target.go index 34f1b462ea..dd192fa829 100644 --- a/src/core/build_target.go +++ b/src/core/build_target.go @@ -1175,7 +1175,9 @@ func (target *BuildTarget) AddProvide(language string, label BuildLabel) { } else { target.Provides[language] = label } - target.AddDependency(label) + if label != target.Label { + target.AddDependency(label) + } } // ProvideFor returns the build label that we'd provide for the given target.