File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -635,7 +635,7 @@ object Build {
635
635
def insertClasspathInArgs (args : List [String ], cp : String ): List [String ] = {
636
636
val (beforeCp, fromCp) = args.span(_ != " -classpath" )
637
637
val classpath = fromCp.drop(1 ).headOption.fold(cp)(_ + " :" + cp)
638
- beforeCp ::: " -classpath" :: classpath :: fromCp.drop(2 )
638
+ " -classpath" :: classpath :: beforeCp : :: fromCp.drop(2 )
639
639
}
640
640
641
641
lazy val nonBootstrapedDottyCompilerSettings = commonDottyCompilerSettings ++ Seq (
Original file line number Diff line number Diff line change 7
7
echo " testing sbt dotc and dotr"
8
8
mkdir out/scriptedtest0
9
9
./project/scripts/sbt " ;dotc tests/pos/sbtDotrTest.scala -d out/scriptedtest0 ;dotr -classpath out/scriptedtest0 dotrtest.Test" > sbtdotr1.out
10
+ cat sbtdotr1.out
10
11
if grep -e " dotr test ok" sbtdotr1.out; then
11
12
echo " output ok"
12
13
else
@@ -18,8 +19,18 @@ echo "testing sbt dotc -tasty and dotr -classpath"
18
19
mkdir out/scriptedtest1
19
20
mkdir out/scriptedtest2
20
21
./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
21
23
if grep -e " dotr test ok" sbtdotr2.out; then
22
24
echo " output ok"
23
25
else
24
26
exit -1
25
27
fi
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