diff options
| author | Kevin Laeufer | 2020-07-28 09:31:55 -0700 |
|---|---|---|
| committer | Kevin Laeufer | 2020-07-29 15:26:30 -0700 |
| commit | ff509e6a917269f995e28f228a23a7fb6e947363 (patch) | |
| tree | 389d080c53e30cb49b407508c2ab860935a32354 /src | |
| parent | 6b71172e94e9fc786d33a34b75395c4f08817b6a (diff) | |
[2.13] explicitly use a parallel vector
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/scala/firrtl/stage/phases/Compiler.scala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/scala/firrtl/stage/phases/Compiler.scala b/src/main/scala/firrtl/stage/phases/Compiler.scala index d5c45dba..66dad55e 100644 --- a/src/main/scala/firrtl/stage/phases/Compiler.scala +++ b/src/main/scala/firrtl/stage/phases/Compiler.scala @@ -111,8 +111,9 @@ class Compiler extends Phase with Translator[AnnotationSeq, Seq[CompilerRun]] { c.copy(stateOut = Some(annotationsOut)) } - if (b.size <= 1) { b.map(f) } - else { b.par.map(f).seq } + if (b.size <= 1) { b.map(f) } else { + collection.parallel.immutable.ParVector(b :_*).par.map(f).seq + } } private def compilerToTransforms(a: FirrtlCompiler): Seq[TransformDependency] = a match { |
