File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package dotty.tools.dotc.core
3
3
import dotty .tools .dotc .core .Contexts ._
4
4
import dotty .tools .dotc .util .Property
5
5
import dotty .tools .dotc .reporting .trace
6
+ import dotty .tools .io .ClassPath
6
7
7
8
import scala .collection .mutable
8
9
@@ -20,7 +21,8 @@ object MacroClassLoader {
20
21
ctx.setProperty(MacroClassLoaderKey , makeMacroClassLoader(using ctx))
21
22
22
23
private def makeMacroClassLoader (using Context ): ClassLoader = trace(" new macro class loader" ) {
23
- val urls = ctx.settings.classpath.value.split(java.io.File .pathSeparatorChar).map(cp => java.nio.file.Paths .get(cp).toUri.toURL)
24
+ val entries = ClassPath .expandPath(ctx.settings.classpath.value, expandStar= true )
25
+ val urls = entries.map(cp => java.nio.file.Paths .get(cp).toUri.toURL).toArray
24
26
val out = ctx.settings.outputDir.value.jpath.toUri.toURL // to find classes in case of suspended compilation
25
27
new java.net.URLClassLoader (urls :+ out, getClass.getClassLoader)
26
28
}
You can’t perform that action at this time.
0 commit comments