Skip to content

Commit d992f6c

Browse files
committed
Create ./out if it does not exist
1 parent d525de3 commit d992f6c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler/src/dotty/tools/dotc/fromtasty/Debug.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ object Debug {
1717

1818
assert(!args.contains("-d"))
1919

20-
val tmpOut = Files.createTempDirectory(Paths.get("out").toAbsolutePath, "from-tasty-tmp")
20+
val outPath = Paths.get("out")
21+
Directory(outPath).createDirectory()
22+
23+
val tmpOut = Files.createTempDirectory(outPath.toAbsolutePath, "from-tasty-tmp")
2124

2225
val fromSourcesOut = Files.createDirectory(tmpOut.resolve("from-source"))
2326

0 commit comments

Comments
 (0)