aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/buildgraph/cycledetector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/buildgraph/cycledetector.cpp')
-rw-r--r--src/lib/buildgraph/cycledetector.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/buildgraph/cycledetector.cpp b/src/lib/buildgraph/cycledetector.cpp
index bb5d0bf38..c67d80ab8 100644
--- a/src/lib/buildgraph/cycledetector.cpp
+++ b/src/lib/buildgraph/cycledetector.cpp
@@ -30,6 +30,7 @@
#include "artifact.h"
#include "buildgraph.h"
+#include "productbuilddata.h"
#include <language/language.h>
#include <logging/translator.h>
@@ -51,6 +52,14 @@ void CycleDetector::visitProject(const ResolvedProjectConstPtr &project)
ArtifactVisitor::visitProject(project);
}
+void CycleDetector::visitProduct(const ResolvedProductConstPtr &product)
+{
+ if (!product->buildData)
+ return;
+ foreach (Artifact * const artifact, product->buildData->targetArtifacts)
+ visitArtifact(artifact);
+}
+
void CycleDetector::visitArtifact(Artifact *artifact)
{
if (Q_UNLIKELY(m_artifactsInCurrentPath.contains(artifact))) {