Skip to content

Commit

Permalink
Add dottyLibrary on test runtime classpath in vulpix
Browse files Browse the repository at this point in the history
  • Loading branch information
jchyb committed Jul 24, 2024
1 parent 2a95f2f commit c5a175e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiler/test/dotty/tools/vulpix/RunnerOrchestration.scala
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ trait RunnerOrchestration {
*/
private def createProcess: Process = {
val url = classOf[ChildJVMMain].getProtectionDomain.getCodeSource.getLocation
val cp = Paths.get(url.toURI).toString + JFile.pathSeparator + Properties.scalaLibrary
val cp = Paths.get(url.toURI).toString +
JFile.pathSeparator + Properties.scalaLibrary +
JFile.pathSeparator + Properties.dottyLibrary
val javaBin = Paths.get(sys.props("java.home"), "bin", "java").toString
new ProcessBuilder(javaBin, "-Dfile.encoding=UTF-8", "-Duser.language=en", "-Duser.country=US", "-Xmx1g", "-cp", cp, "dotty.tools.vulpix.ChildJVMMain")
.redirectErrorStream(true)
Expand Down

0 comments on commit c5a175e

Please sign in to comment.