-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
23 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,32 @@ | ||
import mill._, scalalib._ | ||
import ammonite.ops._ | ||
import java.nio.file.Paths | ||
|
||
object chisel extends ScalaModule { | ||
def scalaVersion = "2.12.6" | ||
def scalaVersion = "2.13.8" | ||
def scalacOptions = Seq( | ||
"-Xsource:2.11", | ||
"-language:reflectiveCalls", | ||
"-deprecation", | ||
"-feature", | ||
"-Xcheckinit", | ||
"-P:chiselplugin:genBundleElements" | ||
) | ||
|
||
def millSourcePath = super.millSourcePath / os.up | ||
|
||
override def ivyDeps = Agg( | ||
ivy"edu.berkeley.cs::chisel3:3.5.1", | ||
) | ||
|
||
override def scalacPluginIvyDeps = Agg( | ||
ivy"edu.berkeley.cs:::chisel3-plugin:3.5.1", | ||
) | ||
def millSourcePath = super.millSourcePath / ammonite.ops.up | ||
|
||
def unmanagedClasspath = T { | ||
val lib_path = T.ctx.env.get("MILL_LIB") match { | ||
case Some(lib) => Path(Paths.get(lib).toAbsolutePath) | ||
case Some(lib) => os.Path(Paths.get(lib).toAbsolutePath) | ||
case None => millSourcePath / "lib" | ||
} | ||
if (!ammonite.ops.exists(lib_path)) Agg() | ||
else Agg.from(ammonite.ops.ls(lib_path).map(PathRef(_))) | ||
if (!os.exists(lib_path)) Agg() | ||
else Agg.from(os.list(lib_path).map(PathRef(_))) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters