@@ -223,9 +223,6 @@ object Build {
223223 // non-bootstrapped dotty-library that will then take priority over
224224 // the bootstrapped dotty-library on the classpath or sourcepath.
225225 classpathOptions ~= (_.withAutoBoot(false )),
226- // We still need a Scala bootclasspath equal to the JVM bootclasspath,
227- // otherwise sbt 0.13 incremental compilation breaks (https://github.com/sbt/sbt/issues/3142)
228- scalacOptions ++= Seq (" -bootclasspath" , sys.props(" sun.boot.class.path" )),
229226
230227 // Enforce that the only Scala 2 classfiles we unpickle come from scala-library
231228 /*
@@ -551,22 +548,22 @@ object Build {
551548 val attList = (dependencyClasspath in Runtime ).value
552549 val jars = packageAll.value
553550
554- // put needed dependencies on classpath:
555- val path = for {
556- file <- attList.map(_.data)
557- path = file.getAbsolutePath
558- // FIXME: when we snip the cord, this should go bye-bye
559- if path.contains(" scala-library" ) ||
560- // FIXME: currently needed for tests referencing scalac internals
561- path.contains(" scala-reflect" ) ||
562- // used for tests that compile xml
563- path.contains(" scala-xml" ) ||
564- // used for tests that compile dotty
565- path.contains(" scala-asm" ) ||
566- // needed for the xsbti interface
567- path.contains(" compiler-interface" ) ||
568- path.contains(" util-interface" )
569- } yield " -Xbootclasspath/p:" + path
551+ // // put needed dependencies on classpath:
552+ // val path = for {
553+ // file <- attList.map(_.data)
554+ // path = file.getAbsolutePath
555+ // // FIXME: when we snip the cord, this should go bye-bye
556+ // if path.contains("scala-library") ||
557+ // // FIXME: currently needed for tests referencing scalac internals
558+ // path.contains("scala-reflect") ||
559+ // // used for tests that compile xml
560+ // path.contains("scala-xml") ||
561+ // // used for tests that compile dotty
562+ // path.contains("scala-asm") ||
563+ // // needed for the xsbti interface
564+ // path.contains("compiler-interface") ||
565+ // path.contains("util-interface")
566+ // } yield "-Xbootclasspath/p:" + path
570567
571568 val ci_build = // propagate if this is a ci build
572569 sys.props.get(" dotty.drone.mem" ) match {
@@ -586,7 +583,7 @@ object Build {
586583 " -Ddotty.tests.classes.compiler=" + jars(" dotty-compiler" )
587584 )
588585
589- jarOpts ::: tuning ::: agentOptions ::: ci_build ::: path.toList
586+ jarOpts ::: tuning ::: agentOptions ::: ci_build
590587 },
591588
592589 testCompilation := testOnlyFiltered(" dotty.tools.dotc.*CompilationTests" , " --exclude-categories=dotty.SlowTests" ).evaluated,
@@ -661,7 +658,9 @@ object Build {
661658 )
662659
663660 def runCompilerMain (repl : Boolean = false ) = Def .inputTaskDyn {
661+ val attList = (dependencyClasspath in Runtime ).value
664662 val jars = packageAll.value
663+ val scalaLib = findLib(attList, " scala-library" )
665664 val dottyLib = jars(" dotty-library" )
666665 val dottyCompiler = jars(" dotty-compiler" )
667666 val args0 : List [String ] = spaceDelimited(" <arg>" ).parsed.toList
@@ -677,7 +676,7 @@ object Build {
677676 else if (debugFromTasty) " dotty.tools.dotc.fromtasty.Debug"
678677 else " dotty.tools.dotc.Main"
679678
680- var extraClasspath = dottyLib
679+ var extraClasspath = s " $scalaLib : $ dottyLib"
681680 if ((decompile || printTasty) && ! args.contains(" -classpath" )) extraClasspath += " :."
682681 if (args0.contains(" -with-compiler" )) {
683682 if (! isDotty.value) {
0 commit comments