We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f7b28bd + eb7aefd commit 8041a9eCopy full SHA for 8041a9e
compiler/src/dotty/tools/scripting/ScriptingDriver.scala
@@ -19,6 +19,7 @@ import sys.process._
19
class ScriptingDriver(compilerArgs: Array[String], scriptFile: File, scriptArgs: Array[String]) extends Driver:
20
def compileAndRun(pack:(Path, Seq[Path], String) => Boolean = null): Unit =
21
val outDir = Files.createTempDirectory("scala3-scripting")
22
+ outDir.toFile.deleteOnExit()
23
setup(compilerArgs :+ scriptFile.getAbsolutePath, initCtx.fresh) match
24
case Some((toCompile, rootCtx)) =>
25
given Context = rootCtx.fresh.setSetting(rootCtx.settings.outputDir,
0 commit comments