Skip to content

Commit ad18d9b

Browse files
authored
chore: drop -run and -repl in MainGenericCompiler (#24289)
First step towards extracting the `repl` to be its own artifact. We need to remove that because the repl will have a dependency on the compiler and we cannot have the compiler depend on the repl too (cyclic dependency) Related to #24243
2 parents c2d8e84 + d254f06 commit ad18d9b

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

compiler/src/dotty/tools/MainGenericCompiler.scala

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ enum CompileMode:
2121
case Decompile
2222
case PrintTasty
2323
case Script
24-
case Repl
25-
case Run
2624

2725
case class CompileSettings(
2826
verbose: Boolean = false,
@@ -113,8 +111,6 @@ object MainGenericCompiler {
113111
process(tail, settings.withScalaArgs("-verbose"))
114112
case ("-q" | "-quiet") :: tail =>
115113
process(tail, settings.withQuiet)
116-
case "-repl" :: tail =>
117-
process(tail, settings.withCompileMode(CompileMode.Repl))
118114
case "-script" :: targetScript :: tail =>
119115
process(Nil, settings
120116
.withCompileMode(CompileMode.Script)
@@ -127,8 +123,6 @@ object MainGenericCompiler {
127123
process(tail, settings.withCompileMode(CompileMode.Decompile))
128124
case "-print-tasty" :: tail =>
129125
process(tail, settings.withCompileMode(CompileMode.PrintTasty))
130-
case "-run" :: tail =>
131-
process(tail, settings.withCompileMode(CompileMode.Run))
132126
case "-colors" :: tail =>
133127
process(tail, settings.withColors)
134128
case "-no-colors" :: tail =>
@@ -186,10 +180,6 @@ object MainGenericCompiler {
186180
++ List("-script", settings.targetScript)
187181
++ settings.scriptArgs
188182
scripting.Main.main(properArgs.toArray)
189-
case CompileMode.Repl | CompileMode.Run =>
190-
addJavaProps()
191-
val properArgs = reconstructedArgs()
192-
repl.Main.main(properArgs.toArray)
193183
case CompileMode.Guess =>
194184
run(settings.withCompileMode(CompileMode.Compile))
195185
end run

0 commit comments

Comments
 (0)