Skip to content

Commit 5bf84e3

Browse files
committed
include compiler-interface into scala -classpath when -with-compiler flag is specified
1 parent 84d2f7d commit 5bf84e3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dist/bin/scala.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ if %_EXECUTE_SCRIPT%==1 (
4848
echo Warning: Multiple classpaths are found, scala only use the last one. 1>&2
4949
)
5050
if %_WITH_COMPILER%==1 (
51-
set "_CP_ARG=!_CP_ARG!%_PSEP%%_SCALA3_COMP%%_PSEP%%_TASTY_CORE%%_PSEP%%_SCALA3_INTF%%_PSEP%%_SCALA_ASM%%_PSEP%%_SCALA3_STAGING%%_PSEP%%_SCALA3_TASTY_INSPECTOR%"
51+
set "_CP_ARG=!_CP_ARG!%_PSEP%%_SCALA3_COMP%%_PSEP%%_TASTY_CORE%%_PSEP%%_SCALA3_INTF%%_PSEP%%_SCALA_ASM%%_PSEP%%_SCALA3_STAGING%%_PSEP%%_SCALA3_TASTY_INSPECTOR%%_PSEP%%_SBT_INTF%"
5252
)
5353
set _JAVA_ARGS=-classpath "!_CP_ARG!" %_JVM_OPTS% %_RESIDUAL_ARGS%
5454
call "%_JAVACMD%" !_JAVA_ARGS!

project/Build.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,8 @@ object Build {
623623
val dottyTastyInspector = jars("scala3-tasty-inspector")
624624
val dottyInterfaces = jars("scala3-interfaces")
625625
val tastyCore = jars("tasty-core")
626-
run(insertClasspathInArgs(args1, List(dottyCompiler, dottyInterfaces, asm, dottyStaging, dottyTastyInspector, tastyCore).mkString(File.pathSeparator)))
626+
val compilerInterface = findArtifactPath(externalDeps, "compiler-interface")
627+
run(insertClasspathInArgs(args1, List(dottyCompiler, dottyInterfaces, asm, dottyStaging, dottyTastyInspector, tastyCore, compilerInterface).mkString(File.pathSeparator)))
627628
} else run(args)
628629
},
629630

0 commit comments

Comments
 (0)