Skip to content

Commit df1c19d

Browse files
author
Oron Port
committed
nvc resilience for linux and for caching change in version v1.17
1 parent 31a0978 commit df1c19d

File tree

1 file changed

+6
-2
lines changed
  • lib/src/main/scala/dfhdl/tools/toolsCore

1 file changed

+6
-2
lines changed

lib/src/main/scala/dfhdl/tools/toolsCore/NVC.scala

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,12 @@ object NVC extends VHDLLinter, VHDLSimulator:
4646
s"WORK.${topNameUC}_PKG",
4747
s"WORK.${topNameUC}_PKG-body"
4848
)
49-
val topWorkFiles = List(s"WORK.${topNameUC}.elab", s"_WORK.${topNameUC}.pack")
50-
val extraFiles = List("_index.", "_NVC_LIB.")
49+
val versionDouble = this.installedVersion.get.split("\\.").take(2).mkString(".").toDouble
50+
val topElabFile =
51+
if (versionDouble >= 1.17) s"_WORK.${topNameUC}.elab.pack"
52+
else s"_WORK.${topNameUC}.pack"
53+
val topWorkFiles = List(s"WORK.${topNameUC}.elab", topElabFile)
54+
val extraFiles = List("_index", "_NVC_LIB")
5155
val allFiles = extraFiles ++ topWorkFiles ++ dsnPackageWorkFiles ++ designWorkFiles
5256
allFiles.map(name => s"work${separatorChar}${name}")
5357
end producedFiles

0 commit comments

Comments
 (0)