File tree Expand file tree Collapse file tree 4 files changed +6
-11
lines changed
src/dotty/tools/dotc/quoted Expand file tree Collapse file tree 4 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -50,11 +50,8 @@ class QuoteDriver extends Driver {
50
50
51
51
override def initCtx : Context = {
52
52
val ictx = super .initCtx.fresh
53
- val compilerClasspath = System .getProperty(" dotty.tools.dotc.classpath" )
54
- assert(compilerClasspath ne null , " System property `dotty.tools.dotc.classpath` is not set." )
55
53
val classpath = System .getProperty(" java.class.path" )
56
- val scalaLib = classpath.split(" :" ).filter(_.contains(" scala-library" )).mkString(" :" )
57
- ictx.settings.classpath.update(compilerClasspath + " :" + scalaLib)(ictx)
54
+ ictx.settings.classpath.update(classpath)(ictx)
58
55
ictx
59
56
}
60
57
Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ public class ChildJVMMain {
12
12
static final String MessageEnd = "##THIS IS THE END FOR ME, GOODBYE##" ;
13
13
14
14
private static void runMain (String dir ) throws Exception {
15
- System .setProperty ("dotty.tools.dotc.classpath" , dir );
15
+ String jcp = System .getProperty ("java.class.path" );
16
+ System .setProperty ("java.class.path" , jcp == null ? dir : dir + ":" + jcp );
17
+
16
18
ArrayList <URL > cp = new ArrayList <>();
17
19
for (String path : dir .split (":" ))
18
20
cp .add (new File (path ).toURI ().toURL ());
Original file line number Diff line number Diff line change 30
30
source " $PROG_HOME /bin/common"
31
31
32
32
declare -a residual_args
33
- declare -a system_properties
34
33
run_repl=false
35
34
with_compiler=false
36
35
CLASS_PATH=" "
77
76
fi
78
77
if [ $with_compiler == true ]; then
79
78
cp_arg+=" $PSEP$DOTTY_COMP$PSEP$DOTTY_INTF$PSEP$SCALA_ASM "
80
- system_properties+=(" -Ddotty.tools.dotc.classpath=$DOTTY_COMP$PSEP$DOTTY_LIB$PSEP$DOTTY_INTF$PSEP$SCALA_ASM " )
81
79
fi
82
- eval exec " \" $JAVACMD \" " " $DEBUG " " -classpath \" $cp_arg \" " " ${system_properties[@]} " " ${ residual_args[@]}"
80
+ eval exec " \" $JAVACMD \" " " $DEBUG " " -classpath \" $cp_arg \" " " ${residual_args[@]} "
83
81
fi
Original file line number Diff line number Diff line change @@ -596,9 +596,7 @@ object Build {
596
596
val asm = findLib(" scala-asm" )
597
597
val dottyCompiler = packageAll.value(" dotty-compiler" )
598
598
val dottyInterfaces = packageAll.value(" dotty-interfaces" )
599
- val deps = s " $dottyCompiler: $dottyInterfaces: $asm"
600
- val args2 = s " -Ddotty.tools.dotc.classpath= $deps: $dottyLib" :: insertClasspathInArgs(args1, deps)
601
- run(args2)
599
+ run(insertClasspathInArgs(args1, s " $dottyCompiler: $dottyInterfaces: $asm" ))
602
600
} else run(args)
603
601
},
604
602
run := dotc.evaluated,
You can’t perform that action at this time.
0 commit comments