File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,6 @@ object ExposedValues extends AutoPlugin {
24
24
25
25
object Build {
26
26
27
- projectChecks()
28
-
29
27
val scalacVersion = " 2.11.11" // Do not rename, this is grepped in bin/common.
30
28
31
29
val dottyOrganization = " ch.epfl.lamp"
@@ -234,7 +232,7 @@ object Build {
234
232
settings(commonNonBootstrappedSettings).
235
233
settings(
236
234
triggeredMessage in ThisBuild := Watched .clearWhenTriggered,
237
-
235
+ submoduleChecks,
238
236
addCommandAlias(" run" , " dotty-compiler/run" ) ++
239
237
addCommandAlias(" legacyTests" , " dotty-compiler/testOnly dotc.tests" )
240
238
)
@@ -995,14 +993,15 @@ object DottyInjectedPlugin extends AutoPlugin {
995
993
))
996
994
}
997
995
998
- private def projectChecks () : Unit = {
996
+ lazy val submoduleChecks = onLoad in Global := (onLoad in Global ).value andThen { state =>
999
997
val submodules = List (new File (" scala-backend" ), new File (" scala-library" ), new File (" collection-strawman" ))
1000
998
if (! submodules.forall(f => f.exists && f.listFiles().nonEmpty)) {
1001
- println(
1002
- s """ [WARNING] Missing some of the submodules
999
+ sLog.value.log( Level . Error ,
1000
+ s """ Missing some of the submodules
1003
1001
|You can initialize the modules with:
1004
1002
| > git submodule update --init
1005
1003
""" .stripMargin)
1006
1004
}
1005
+ state
1007
1006
}
1008
1007
}
You can’t perform that action at this time.
0 commit comments