diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2017-03-11 16:18:38 +0100 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2017-03-20 15:05:20 +0100 |
commit | b2af166bce00b9712f554b588527ca0c4f7544ec (patch) | |
tree | be522b52e6bc4da3db7e91a06db357d52788db86 | |
parent | 8716fac3e392e2968df4f681474b2ee2964c834f (diff) | |
download | dotty-b2af166bce00b9712f554b588527ca0c4f7544ec.tar.gz dotty-b2af166bce00b9712f554b588527ca0c4f7544ec.tar.bz2 dotty-b2af166bce00b9712f554b588527ca0c4f7544ec.zip |
Super Bootstrap: Make dottydoc part of the bootstrap
This wasn't done before because dotty could not compile dottydoc, this
is now fixed.
-rw-r--r-- | project/Build.scala | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/project/Build.scala b/project/Build.scala index 376e06bb1..5a21b7653 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -206,6 +206,16 @@ object DottyBuild extends Build { // Settings shared between dotty-compiler and dotty-compiler-bootstrapped lazy val dottyCompilerSettings = Seq( + + // necessary evil: dottydoc currently needs to be included in the dotty + // project, for sbt integration + unmanagedResourceDirectories in Compile := Seq((resourceDirectory in Compile).value), + unmanagedResourceDirectories in Compile += baseDirectory.value / ".." / "doc-tool" / "resources", + unmanagedSourceDirectories in Compile := Seq((scalaSource in Compile).value), + unmanagedSourceDirectories in Compile += baseDirectory.value / ".." / "doc-tool" / "src", + unmanagedSourceDirectories in Test := Seq((scalaSource in Test).value), + unmanagedSourceDirectories in Test += baseDirectory.value / ".." / "doc-tool" / "test", + // set system in/out for repl connectInput in run := true, outputStrategy := Some(StdoutOutput), @@ -448,17 +458,6 @@ object DottyBuild extends Build { settings( overrideScalaVersionSetting, - // necessary evil: dottydoc currently needs to be included in the dotty - // project, for sbt integration - // FIXME: note part of dottyCompilerSettings because the doc-tool does not - // compile with dotty - unmanagedResourceDirectories in Compile := Seq((resourceDirectory in Compile).value), - unmanagedResourceDirectories in Compile += baseDirectory.value / ".." / "doc-tool" / "resources", - unmanagedSourceDirectories in Compile := Seq((scalaSource in Compile).value), - unmanagedSourceDirectories in Compile += baseDirectory.value / ".." / "doc-tool" / "src", - unmanagedSourceDirectories in Test := Seq((scalaSource in Test).value), - unmanagedSourceDirectories in Test += baseDirectory.value / ".." / "doc-tool" / "test", - // Disable scaladoc generation, it's way too slow and we'll replace it // by dottydoc anyway. We still publish an empty -javadoc.jar to make // sonatype happy. |