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:
Geza Lore
2020-05-26 01:22:10 +01:00
parent 9d7086067c
commit 72858175a2
7 changed files with 121 additions and 12 deletions
+3
View File
@@ -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";