mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Only emit VM_PARALLEL_BUILDS=1 iff --output-split caused a split.
Previously we set VM_PARALLEL_BUILDS=1 if the --output-split option was provided. Now we only do it iff it actually causes a split.
This commit is contained in:
@@ -521,6 +521,9 @@ void EmitCSyms::checkSplit(bool usesVfinal) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Splitting file, so using parallel build.
|
||||
v3Global.useParallelBuild(true);
|
||||
|
||||
m_numStmts = 0;
|
||||
string filename
|
||||
= v3Global.opt.makeDir() + "/" + symClassName() + "__" + cvtToStr(++m_funcNum) + ".cpp";
|
||||
|
||||
Reference in New Issue
Block a user