Skip to content

Commit 4d2fe27

Browse files
committed
Recursively create non-existing output dir
1 parent 8b1e46e commit 4d2fe27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/swift-build-sdk-interfaces/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ do {
6262
outputDir = outputDir.appending(RelativePath(collector.versionString))
6363
}
6464
if !localFileSystem.exists(outputDir) {
65-
try localFileSystem.createDirectory(outputDir)
65+
try localFileSystem.createDirectory(outputDir, recursive: true)
6666
}
6767
let swiftcPathRaw = ProcessEnv.vars["SWIFT_EXEC"]
6868
var swiftcPath: AbsolutePath

0 commit comments

Comments
 (0)