Skip to content

Commit 258dbba

Browse files
smarterfelixmulder
authored andcommitted
Fix "sbt run"
Broken since the dotty jars were removed from the JVM bootclasspath. I think the proper solution is to use the Scala bootclasspath to pass all the necessary jars but this will do for now.
1 parent f08bf7e commit 258dbba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

project/Build.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ object DottyBuild extends Build {
194194
fork in Test := true,
195195
parallelExecution in Test := false,
196196

197+
// FIXME: Do something more sensible, like using the Scala bootclasspath
198+
run <<= (run in Compile).partialInput(" -usejavacp"),
199+
197200
// http://grokbase.com/t/gg/simple-build-tool/135ke5y90p/sbt-setting-jvm-boot-paramaters-for-scala
198201
// packageAll should always be run before tests
199202
javaOptions <++= (dependencyClasspath in Runtime, packageAll) map { (attList, _) =>

0 commit comments

Comments
 (0)