File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -635,7 +635,7 @@ object Build {
635635 def insertClasspathInArgs (args : List [String ], cp : String ): List [String ] = {
636636 val (beforeCp, fromCp) = args.span(_ != " -classpath" )
637637 val classpath = fromCp.drop(1 ).headOption.fold(cp)(_ + " :" + cp)
638- beforeCp ::: " -classpath" :: classpath :: fromCp.drop(2 )
638+ " -classpath" :: classpath :: beforeCp : :: fromCp.drop(2 )
639639 }
640640
641641 lazy val nonBootstrapedDottyCompilerSettings = commonDottyCompilerSettings ++ Seq (
Original file line number Diff line number Diff line change 77echo " testing sbt dotc and dotr"
88mkdir out/scriptedtest0
99./project/scripts/sbt " ;dotc tests/pos/sbtDotrTest.scala -d out/scriptedtest0 ;dotr -classpath out/scriptedtest0 dotrtest.Test" > sbtdotr1.out
10+ cat sbtdotr1.out
1011if grep -e " dotr test ok" sbtdotr1.out; then
1112 echo " output ok"
1213else
@@ -18,8 +19,18 @@ echo "testing sbt dotc -tasty and dotr -classpath"
1819mkdir out/scriptedtest1
1920mkdir out/scriptedtest2
2021./project/scripts/sbt " ;dotc tests/pos/sbtDotrTest.scala -d out/scriptedtest1/; dotc -tasty -classpath out/scriptedtest1/ -d out/scriptedtest2/ dotrtest.Test; dotr -classpath out/scriptedtest2/ dotrtest.Test" > sbtdotr2.out
22+ cat sbtdotr2.out
2123if grep -e " dotr test ok" sbtdotr2.out; then
2224 echo " output ok"
2325else
2426 exit -1
2527fi
28+ echo " testing sbt dotr with no -classpath"
29+
30+ ./project/scripts/sbt " ;dotc tests/pos/sbtDotrTest.scala; dotr dotrtest.Test" > sbtdotp1.out
31+ cat sbtdotp1.out
32+ if grep -e " dotr test ok" sbtdotp1.out; then
33+ echo " output ok"
34+ else
35+ exit -1
36+ fi
You can’t perform that action at this time.
0 commit comments