@@ -164,7 +164,7 @@ lazy val commonSettings = instanceSettings ++ clearSourceAndResourceDirectories
164
164
" -doc-source-url" , s " https://github.com/scala/scala/tree/ ${versionProperties.value.githubTree}€{FILE_PATH}.scala#L1 "
165
165
),
166
166
// maxErrors := 10,
167
- incOptions := (incOptions in LocalProject ( " root " )).value ,
167
+ setIncOptions ,
168
168
apiURL := Some (url(" http://www.scala-lang.org/api/" + versionProperties.value.mavenVersion + " /" )),
169
169
pomIncludeRepository := { _ => false },
170
170
pomExtra := {
@@ -944,10 +944,7 @@ lazy val root: Project = (project in file("."))
944
944
throw new RuntimeException
945
945
}
946
946
},
947
- incOptions := {
948
- incOptions.value
949
- .withRecompileOnMacroDef(Some (Boolean box false ).asJava) // macros in library+reflect are hard-wired to implementations with `FastTrack`.
950
- }
947
+ setIncOptions
951
948
)
952
949
.aggregate(library, reflect, compiler, compilerOptionsExporter, interactive, repl, replFrontend,
953
950
scaladoc, scalap, partest, junit, scalaDist).settings(
@@ -956,6 +953,11 @@ lazy val root: Project = (project in file("."))
956
953
|Check README.md for more information.""" .stripMargin
957
954
)
958
955
956
+ def setIncOptions = incOptions := {
957
+ incOptions.value
958
+ .withRecompileOnMacroDef(Some (Boolean box false ).asJava) // macros in library+reflect are hard-wired to implementations with `FastTrack`.
959
+ }
960
+
959
961
// The following subprojects' binaries are required for building "pack":
960
962
lazy val distDependencies = Seq (replFrontend, compiler, library, reflect, scalap, scaladoc)
961
963
0 commit comments