Fix nested hier blocks workers error (#6087)

Signed-off-by: Bartłomiej Chmiel <[email protected]>
This commit is contained in:
Bartłomiej Chmiel
2025-06-12 07:15:46 -04:00
committed by GitHub
parent 4990b44120
commit dc307270f7
4 changed files with 28 additions and 14 deletions
+2 -2
View File
@@ -192,8 +192,8 @@ V3StringList V3HierBlock::commandArgs(bool forCMake) const {
const int blockThreads = V3Config::getHierWorkers(m_modp->origName());
if (blockThreads > 1) {
if (hasParent()) {
V3Config::getHierWorkersFileLine()->v3warn(
E_UNSUPPORTED, "Specifying workers for nested hierarchical blocks");
V3Config::getHierWorkersFileLine(m_modp->origName())
->v3warn(E_UNSUPPORTED, "Specifying workers for nested hierarchical blocks");
} else {
if (v3Global.opt.threads() < blockThreads) {
m_modp->v3error("Hierarchical blocks cannot be scheduled on more threads than in "