@@ -223,9 +223,6 @@ object Build {
223
223
// non-bootstrapped dotty-library that will then take priority over
224
224
// the bootstrapped dotty-library on the classpath or sourcepath.
225
225
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" )),
229
226
230
227
// Enforce that the only Scala 2 classfiles we unpickle come from scala-library
231
228
/*
@@ -551,22 +548,22 @@ object Build {
551
548
val attList = (dependencyClasspath in Runtime ).value
552
549
val jars = packageAll.value
553
550
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
570
567
571
568
val ci_build = // propagate if this is a ci build
572
569
sys.props.get(" dotty.drone.mem" ) match {
@@ -586,7 +583,7 @@ object Build {
586
583
" -Ddotty.tests.classes.compiler=" + jars(" dotty-compiler" )
587
584
)
588
585
589
- jarOpts ::: tuning ::: agentOptions ::: ci_build ::: path.toList
586
+ jarOpts ::: tuning ::: agentOptions ::: ci_build
590
587
},
591
588
592
589
testCompilation := testOnlyFiltered(" dotty.tools.dotc.*CompilationTests" , " --exclude-categories=dotty.SlowTests" ).evaluated,
@@ -661,7 +658,9 @@ object Build {
661
658
)
662
659
663
660
def runCompilerMain (repl : Boolean = false ) = Def .inputTaskDyn {
661
+ val attList = (dependencyClasspath in Runtime ).value
664
662
val jars = packageAll.value
663
+ val scalaLib = findLib(attList, " scala-library" )
665
664
val dottyLib = jars(" dotty-library" )
666
665
val dottyCompiler = jars(" dotty-compiler" )
667
666
val args0 : List [String ] = spaceDelimited(" <arg>" ).parsed.toList
@@ -677,7 +676,7 @@ object Build {
677
676
else if (debugFromTasty) " dotty.tools.dotc.fromtasty.Debug"
678
677
else " dotty.tools.dotc.Main"
679
678
680
- var extraClasspath = dottyLib
679
+ var extraClasspath = s " $scalaLib : $ dottyLib"
681
680
if ((decompile || printTasty) && ! args.contains(" -classpath" )) extraClasspath += " :."
682
681
if (args0.contains(" -with-compiler" )) {
683
682
if (! isDotty.value) {
0 commit comments