-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sc
33 lines (27 loc) · 835 Bytes
/
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
import mill._
import mill.scalalib._
import mill.scalalib.scalafmt.ScalafmtModule
val sv = "2.12.13"
object ousia extends SbtModule with ScalafmtModule {
def millSourcePath = os.pwd
def scalaVersion = sv
def moduleDeps = Seq(`api-config-chipsalliance`)
def ivyDeps = Agg(ivy"edu.berkeley.cs::chisel3:3.4.+")
def scalacOptions = super.scalacOptions() ++ Seq(
// Required options for Chisel code
"-Xsource:2.11",
// Recommended options
"-language:reflectiveCalls",
"-deprecation",
"-feature",
"-Xcheckinit",
// Features I like
"-language:implicitConversions",
"-language:postfixOps",
)
}
object `api-config-chipsalliance` extends ScalaModule {
def millSourcePath = os.pwd / "tool" / "api-config-chipsalliance" / "design" / "craft"
def scalaVersion = sv
}
// vim:ft=scala