1 Star 4 Fork 2

RV少年 (RV4Kids) / NutShell

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.sc 1.14 KB
一键复制 编辑 原始数据 按行查看 历史
import mill._, scalalib._
/**
* Scala 2.12 module that is source-compatible with 2.11.
* This is due to Chisel's use of structural types. See
* https://github.com/freechipsproject/chisel3/issues/606
*/
trait HasXsource211 extends ScalaModule {
override def scalacOptions = T {
super.scalacOptions() ++ Seq(
"-deprecation",
"-unchecked",
"-Xsource:2.11"
)
}
}
trait HasChisel3 extends ScalaModule {
override def ivyDeps = Agg(
ivy"edu.berkeley.cs::chisel3:3.3.2"
)
}
trait HasChiselTests extends CrossSbtModule {
object test extends Tests {
override def ivyDeps = Agg(ivy"org.scalatest::scalatest:3.0.4", ivy"edu.berkeley.cs::chisel-iotesters:1.2+")
def testFrameworks = Seq("org.scalatest.tools.Framework")
}
}
trait HasMacroParadise extends ScalaModule {
// Enable macro paradise for @chiselName et al
val macroPlugins = Agg(ivy"org.scalamacros:::paradise:2.1.0")
def scalacPluginIvyDeps = macroPlugins
def compileIvyDeps = macroPlugins
}
object chiselModule extends CrossSbtModule with HasChisel3 with HasChiselTests with HasXsource211 with HasMacroParadise {
def crossScalaVersion = "2.11.12"
}
Scala
1
https://gitee.com/RV4Kids/NutShell.git
git@gitee.com:RV4Kids/NutShell.git
RV4Kids
NutShell
NutShell
master

搜索帮助