summaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2016-11-07 17:02:50 +1000
committerJason Zaugg <jzaugg@gmail.com>2016-11-07 17:02:50 +1000
commit86c4ac202605480f611a935c2bf84531a82eaadb (patch)
treea1d23339bd5e2097a0cb9299adfcb22f73adacb3 /build.sbt
parent823b2d9b130296576d91a86a45e7f6c7d7d94b48 (diff)
downloadscala-86c4ac202605480f611a935c2bf84531a82eaadb.tar.gz
scala-86c4ac202605480f611a935c2bf84531a82eaadb.tar.bz2
scala-86c4ac202605480f611a935c2bf84531a82eaadb.zip
Silence SBT logging about macros and incremental compilation.
Since upgrading to SBT 0.13.12, clean builds have incurred warnings like: Because JavaMirrors.scala contains a macro definition, the following dependencies are invalidated unconditionally: .... This commit disables this behaviour of the SBT incremental compiler in the library and reflect projects, as these aren't regular macros (the macro implementations are hard coded in the compiler in `FastTrack`) so the new behaviour isn't actually improving correctness of inc. compilation.
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt4
1 files changed, 4 insertions, 0 deletions
diff --git a/build.sbt b/build.sbt
index 3b0c74a0ee..1ae5edb4d5 100644
--- a/build.sbt
+++ b/build.sbt
@@ -358,6 +358,8 @@ lazy val library = configureAsSubproject(project)
"-doc-root-content", (sourceDirectory in Compile).value + "/rootdoc.txt"
)
},
+ // macros in library+reflect are hard-wired to implementations with `FastTrack`.
+ incOptions := incOptions.value.withRecompileOnMacroDef(false),
includeFilter in unmanagedResources in Compile := "*.tmpl" | "*.xml" | "*.js" | "*.css" | "rootdoc.txt",
// Include *.txt files in source JAR:
mappings in Compile in packageSrc ++= {
@@ -389,6 +391,8 @@ lazy val reflect = configureAsSubproject(project)
.settings(
name := "scala-reflect",
description := "Scala Reflection Library",
+ // macros in library+reflect are hard-wired to implementations with `FastTrack`.
+ incOptions := incOptions.value.withRecompileOnMacroDef(false),
Osgi.bundleName := "Scala Reflect",
scalacOptions in Compile in doc ++= Seq(
"-skip-packages", "scala.reflect.macros.internal:scala.reflect.internal:scala.reflect.io"