1
0
mirror of https://github.com/antonblanchard/chiselwatt.git synced 2026-02-27 01:10:19 +00:00

Add various scala warning options to mill build

We had a number of scala warning options set in the sbt build,
add these to the mill build.

Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
This commit is contained in:
Anton Blanchard
2020-02-25 11:37:19 +11:00
committed by Anton Blanchard
parent 121d967375
commit 4e6e458a93
2 changed files with 26 additions and 2 deletions

View File

@@ -52,7 +52,19 @@ scalacOptions ++= scalacOptionsVersion(scalaVersion.value)
javacOptions ++= javacOptionsVersion(scalaVersion.value)
scalacOptions ++= Seq("-unchecked", "-deprecation", "-language:reflectiveCalls", "-feature")
scalacOptions ++= Seq("-Ywarn-value-discard", "-Ywarn-dead-code", "-Ywarn-unused")
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-language:reflectiveCalls",
"-feature",
"-Xlint",
"-Ywarn-value-discard",
"-Ywarn-dead-code",
"-Ywarn-unused",
"-Ywarn-unused-import",
"-Ywarn-numeric-widen",
"-Xfuture",
"-Yno-adapted-args"
)
libraryDependencies += "edu.berkeley.cs" %% "chiseltest" % "0.2-SNAPSHOT"

View File

@@ -48,4 +48,16 @@ object chiselwatt extends CrossSbtModule with HasChisel3 with HasChiselTests wit
override def millSourcePath = super.millSourcePath
def crossScalaVersion = "2.12.10"
def mainClass = Some("CoreObj")
def scalacOptions = super.scalacOptions() ++ Seq(
"-language:reflectiveCalls",
"-feature",
"-Xlint",
"-Ywarn-value-discard",
"-Ywarn-dead-code",
"-Ywarn-unused",
"-Ywarn-unused-import",
"-Ywarn-numeric-widen",
"-Xfuture",
"-Yno-adapted-args"
)
}