Fix hierarchical library block source ordering (#8578) (#8579)

This commit is contained in:
Michael Bedford Taylor
2026-10-02 13:23:56 -04:00
committed by GitHub
parent a278652439
commit b080950f76
10 changed files with 157 additions and 11 deletions
+2 -7
View File
@@ -127,11 +127,7 @@ class V3EmitMkJsonEmitter final {
sources.emplace_back(makeDir + "/" + dependencyp->hierWrapperFilename(true));
}
const std::string vFile = hblockp->vFileIfNecessary();
if (!vFile.empty()) sources.emplace_back(vFile);
for (const VFileLibName& i : v3Global.opt.vFiles()) {
const std::string fname = i.filename();
for (const string& fname : V3HierGraph::sourceFiles(hblockp->vFileIfNecessary())) {
sources.emplace_back(V3Os::filenameSlashPath(V3Os::filenameRealPath(fname)));
}
@@ -159,8 +155,7 @@ class V3EmitMkJsonEmitter final {
sources.emplace_back(makeDir + "/" + blockp->hierWrapperFilename(true));
}
for (const VFileLibName& i : v3Global.opt.vFiles()) {
const std::string fname = i.filename();
for (const string& fname : V3HierGraph::sourceFiles()) {
sources.emplace_back(V3Os::filenameSlashPath(V3Os::filenameRealPath(fname)));
}