-
Notifications
You must be signed in to change notification settings - Fork 103
Expand file tree
/
Copy pathbuild.sc
More file actions
58 lines (43 loc) · 1.87 KB
/
Copy pathbuild.sc
File metadata and controls
58 lines (43 loc) · 1.87 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
54
55
56
57
58
/***************************************************************************************
* Copyright (c) 2020-2024 Institute of Computing Technology, Chinese Academy of Sciences
*
* DiffTest is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
*
* See the Mulan PSL v2 for more details.
***************************************************************************************/
import mill._
import mill.api.PathRef
import scalalib._
import publish._
object ivys {
val scala = "2.13.14"
val chisel = (ivy"org.chipsalliance::chisel:7.11.0", ivy"org.chipsalliance:::chisel-plugin:7.11.0")
val scalatest = ivy"org.scalatest::scalatest:3.2.19"
}
trait CommonDiffTest extends ScalaModule with SbtModule {
override def scalaVersion = ivys.scala
override def scalacPluginIvyDeps = Agg(ivys.chisel._2)
override def scalacOptions = Seq("-Ymacro-annotations") ++
Seq("-feature", "-language:reflectiveCalls")
override def ivyDeps = Agg(ivys.chisel._1)
}
object design extends DiffTestModule
trait DiffTestModule extends CommonDiffTest {
override def millSourcePath = os.Path(sys.env("MILL_WORKSPACE_ROOT"))
override def scalacOptions = super.scalacOptions() ++
Seq("-Xfatal-warnings", "-deprecation:false", "-unchecked", "-Xlint")
}
object difftest extends Difftest
trait Difftest extends CommonDiffTest { outer =>
override def millSourcePath = os.Path(sys.env("MILL_WORKSPACE_ROOT"))
object test extends SbtTests with TestModule.ScalaTest {
override def ivyDeps = super.ivyDeps() ++ Agg(ivys.scalatest)
}
}