diff options
| author | Jim Lawson | 2017-01-23 09:05:22 -0800 |
|---|---|---|
| committer | Jack Koenig | 2017-01-26 15:37:50 -0800 |
| commit | 1d6f15a7e1eb61d301e0585c7be5292e2b34e5b7 (patch) | |
| tree | 481b8cc19d9645a01b130c06741da0d6890a8d99 | |
| parent | 4910be0b61f06f40d3f12a598e50bb4a61bc8690 (diff) | |
Use the same firrtl for all sub-projects.
Use the root project's unmanagedBase (".../lib") in all sub-projects.
| -rw-r--r-- | build.sbt | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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). |
