-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sc
50 lines (43 loc) · 1.31 KB
/
build.sc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// import Mill dependency
import mill._
import mill.scalalib._
import mill.scalalib.scalafmt.ScalafmtModule
import mill.scalalib.TestModule.Utest
// support BSP
import mill.bsp._
object playground extends ScalaModule with ScalafmtModule {
m =>
override def scalaVersion = "2.12.13"
override def scalacOptions = Seq(
"-Xsource:2.11",
"-language:reflectiveCalls",
"-deprecation",
"-feature",
"-Xcheckinit",
// Enables autoclonetype2 in 3.4.x (on by default in 3.5)
"-P:chiselplugin:useBundlePlugin"
)
override def ivyDeps = Agg(
ivy"edu.berkeley.cs::chisel3:3.4.3"
)
override def scalacPluginIvyDeps = Agg(
ivy"edu.berkeley.cs:::chisel3-plugin:3.4.3",
ivy"org.scalamacros:::paradise:2.1.1"
)
// object test extends Tests with Utest {
// override def ivyDeps = m.ivyDeps() ++ Agg(
// ivy"org.scalatest::scalatest:3.2.9",
// ivy"com.lihaoyi::utest:0.7.10",
// ivy"edu.berkeley.cs::chiseltest:0.3.3"
// )
// }
// link: https://github.com/chipsalliance/chisel3/discussions/1988
// Use ScalaTest framework
object test extends Tests with TestModule.ScalaTest {
override def ivyDeps = m.ivyDeps() ++ Agg(
ivy"org.scalatest::scalatest:3.2.9",
ivy"com.lihaoyi::utest:0.7.10",
ivy"edu.berkeley.cs::chiseltest:0.3.3"
)
}
}