- Don't carry over OutputFileAnnotaton to the harness phase of GenerateTopAndHarness

This commit is contained in:
chick
2021-02-14 16:18:04 -08:00
parent c052f79392
commit 055800898d

View File

@@ -98,7 +98,9 @@ private class GenerateTopAndHarness(annotations: AnnotationSeq) extends LazyLogg
// outputFileNameOverride: change to harnessOutput
// conf file must change to harnessConf by mapping annotations
val generatorAnnotations = annotations.map {
val generatorAnnotations = annotations
.filterNot(_.isInstanceOf[OutputFileAnnotation])
.map {
case ReplSeqMemAnnotation(i, _) => ReplSeqMemAnnotation(i, harnessConf.get)
case HarnessOutputAnnotation(s) => OutputFileAnnotation(s)
case anno => anno