Skip to content

Commit 90ae286

Browse files
committed
sbt expect a Scala compiler to have a "default" configuration
1 parent 75a6ffe commit 90ae286

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

project/Build.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import java.nio.channels.FileLock
55
import scala.reflect.io.Path
66

77
object DottyBuild extends Build {
8+
// Dummy configuration needed by sbt to use dotty as a compiler
9+
val Default = config("default") extend(Runtime)
810

911
val travisMemLimit = List("-Xmx1g", "-Xss2m")
1012

@@ -129,7 +131,7 @@ object DottyBuild extends Build {
129131
) ++ addCommandAlias("partest", ";test:package;package;test:runMain dotc.build;lockPartestFile;test:test;runPartestRunner") ++
130132
addCommandAlias("partest-only", ";test:package;package;test:runMain dotc.build;lockPartestFile;test:test-only dotc.tests;runPartestRunner")
131133

132-
lazy val dotty = Project(id = "dotty", base = file("."), settings = defaults)
134+
lazy val dotty = Project(id = "dotty", base = file("."), settings = defaults, configurations = Seq(Default))
133135

134136
lazy val benchmarkSettings = Defaults.coreDefaultSettings ++ Seq(
135137

0 commit comments

Comments
 (0)