-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sc
More file actions
32 lines (27 loc) · 800 Bytes
/
build.sc
File metadata and controls
32 lines (27 loc) · 800 Bytes
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
import mill._, scalalib._
import java.nio.file.Paths
object chisel extends ScalaModule {
def scalaVersion = "2.13.8"
def scalacOptions = Seq(
"-language:reflectiveCalls",
"-deprecation",
"-feature",
"-Xcheckinit",
"-P:chiselplugin:genBundleElements"
)
def millSourcePath = super.millSourcePath / os.up
override def ivyDeps = Agg(
ivy"edu.berkeley.cs::chisel3:3.5.1",
)
override def scalacPluginIvyDeps = Agg(
ivy"edu.berkeley.cs:::chisel3-plugin:3.5.1",
)
def unmanagedClasspath = T {
val lib_path = T.ctx.env.get("MILL_LIB") match {
case Some(lib) => os.Path(Paths.get(lib).toAbsolutePath)
case None => millSourcePath / "lib"
}
if (!os.exists(lib_path)) Agg()
else Agg.from(os.list(lib_path).map(PathRef(_)))
}
}