Skip to content

Commit

Permalink
Restore treadle as purely a libraryDependency in test
Browse files Browse the repository at this point in the history
Having it optionally as a source dependency means that SBT projects
building chisel3 from source need treadle as a source dependency despite
it not being required by the main configuration
  • Loading branch information
jackkoenig committed Sep 4, 2020
1 parent 7dcef55 commit 32fa215
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,7 @@ lazy val core = (project in file("core")).
// This will always be the root project, even if we are a sub-project.
lazy val root = RootProject(file("."))

lazy val treadleRef = ProjectRef(workspaceDirectory / "treadle", "treadle")

lazy val chisel = (project in file(".")).
sourceDependency(treadleRef % "test", defaultVersions("treadle") % "test").
enablePlugins(ScalaUnidocPlugin).
settings(commonSettings: _*).
settings(chiselSettings: _*).
Expand All @@ -208,6 +205,7 @@ lazy val chisel = (project in file(".")).
dependsOn(core).
aggregate(macros, core, plugin).
settings(
libraryDependencies += defaultVersions("treadle") % "test",
scalacOptions in Test ++= Seq("-language:reflectiveCalls"),
scalacOptions in Compile in doc ++= Seq(
"-diagrams",
Expand Down

0 comments on commit 32fa215

Please sign in to comment.