Skip to content

Commit 9b98684

Browse files
committed
Update build.sc to current mill version
1 parent e62968d commit 9b98684

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

scratchip/assets/build.sc

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,32 @@
11
import mill._, scalalib._
2-
import ammonite.ops._
32
import java.nio.file.Paths
43

54
object chisel extends ScalaModule {
6-
def scalaVersion = "2.12.6"
5+
def scalaVersion = "2.13.8"
76
def scalacOptions = Seq(
8-
"-Xsource:2.11",
7+
"-language:reflectiveCalls",
8+
"-deprecation",
9+
"-feature",
10+
"-Xcheckinit",
11+
"-P:chiselplugin:genBundleElements"
12+
)
13+
14+
def millSourcePath = super.millSourcePath / os.up
15+
16+
override def ivyDeps = Agg(
17+
ivy"edu.berkeley.cs::chisel3:3.5.1",
18+
)
19+
20+
override def scalacPluginIvyDeps = Agg(
21+
ivy"edu.berkeley.cs:::chisel3-plugin:3.5.1",
922
)
10-
def millSourcePath = super.millSourcePath / ammonite.ops.up
1123

1224
def unmanagedClasspath = T {
1325
val lib_path = T.ctx.env.get("MILL_LIB") match {
14-
case Some(lib) => Path(Paths.get(lib).toAbsolutePath)
26+
case Some(lib) => os.Path(Paths.get(lib).toAbsolutePath)
1527
case None => millSourcePath / "lib"
1628
}
17-
if (!ammonite.ops.exists(lib_path)) Agg()
18-
else Agg.from(ammonite.ops.ls(lib_path).map(PathRef(_)))
29+
if (!os.exists(lib_path)) Agg()
30+
else Agg.from(os.list(lib_path).map(PathRef(_)))
1931
}
20-
}
32+
}

0 commit comments

Comments
 (0)