From 1d6f15a7e1eb61d301e0585c7be5292e2b34e5b7 Mon Sep 17 00:00:00 2001 From: Jim Lawson Date: Mon, 23 Jan 2017 09:05:22 -0800 Subject: Use the same firrtl for all sub-projects. Use the root project's unmanagedBase (".../lib") in all sub-projects. --- build.sbt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.sbt b/build.sbt index 5fa8895b..cfab7fbb 100644 --- a/build.sbt +++ b/build.sbt @@ -24,6 +24,8 @@ lazy val commonSettings = Seq ( scalacOptions := Seq("-deprecation", "-feature"), libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value, addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full), + // Use the root project's unmanaged base for all sub-projects. + unmanagedBase := (unmanagedBase in root).value, // Since we want to examine the classpath to determine if a dependency on firrtl is required, // this has to be a Task setting. // Fortunately, allDependencies is a Task Setting, so we can modify that. @@ -104,6 +106,8 @@ lazy val chiselFrontend = (project in file("chiselFrontend")). settings(publishArtifact := false). dependsOn(coreMacros) +// Hack to avoid circular dependency on chisel. +val root = Project("chisel", file(".")) lazy val chisel = (project in file(".")). enablePlugins(BuildInfoPlugin). -- cgit v1.2.3