Skip to content

Commit 0fbc595

Browse files
authored
[cbuild-run] Avoid duplicated scvd files in system-descriptions (#1198)
1 parent 1768bcc commit 0fbc595

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

tools/projmgr/src/ProjMgrRunDebug.cpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,15 +199,18 @@ bool ProjMgrRunDebug::CollectSettings(const vector<ContextItem*>& contexts) {
199199
m_runDebug.systemDescriptions.push_back(item);
200200
}
201201
}
202+
StrVec scvdFiles;
202203
for (const auto& context : contexts) {
203-
const auto& scvdFiles = context->rteActiveTarget->GetScvdFiles();
204-
for (const auto& [scvdFile, _] : scvdFiles) {
205-
FilesType item;
206-
item.file = scvdFile;
207-
item.type = "scvd";
208-
m_runDebug.systemDescriptions.push_back(item);
204+
for (const auto& [scvdFile, _] : context->rteActiveTarget->GetScvdFiles()) {
205+
CollectionUtils::PushBackUniquely(scvdFiles, scvdFile);
209206
}
210207
}
208+
for (const auto& scvdFile : scvdFiles) {
209+
FilesType item;
210+
item.file = scvdFile;
211+
item.type = "scvd";
212+
m_runDebug.systemDescriptions.push_back(item);
213+
}
211214

212215
// outputs
213216
for (const auto& context : contexts) {

0 commit comments

Comments
 (0)