-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.mill
More file actions
53 lines (44 loc) · 1.16 KB
/
build.mill
File metadata and controls
53 lines (44 loc) · 1.16 KB
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
51
52
53
//| mill-version: 1.1.2
// SPDX-FileCopyrightText: © 2025-2026 Andreas Wendleder
// SPDX-License-Identifier: CERN-OHL-S-2.0
package build
import mill._
import mill.scalalib._
import mill.api.BuildCtx
trait BorgModule extends ScalaModule {
def scalaVersion = "2.13.18"
def chiselVersion = "7.10.0"
override def mvnDeps = Task {
super.mvnDeps() ++ Seq(
mvn"org.chipsalliance::chisel:$chiselVersion"
)
}
override def scalacPluginMvnDeps = Task {
super.scalacPluginMvnDeps() ++ Seq(
mvn"org.chipsalliance:::chisel-plugin:$chiselVersion"
)
}
override def scalacOptions = Task {
super.scalacOptions() ++ Seq(
"-feature",
"-language:reflectiveCalls",
"-deprecation",
"-Xcheckinit",
"-Xsource:3"
)
}
object test extends ScalaTests with TestModule.Utest {
override def forkEnv = Task {
super.forkEnv() ++ Map(
"PROJECT_ROOT" -> BuildCtx.workspaceRoot.toString()
)
}
override def mvnDeps = Task {
super.mvnDeps() ++ Seq(
mvn"com.lihaoyi::utest:0.9.5",
mvn"com.lihaoyi::upickle:4.4.3",
mvn"com.lihaoyi::os-lib:0.11.8"
)
}
}
}