File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -533,11 +533,10 @@ public final class ManifestLoader: ManifestLoaderProtocol {
533
533
534
534
cmd += [ manifestPath. pathString]
535
535
536
- try withTemporaryFile { file in
536
+ try withTemporaryDirectory ( removeTreeOnDeinit : true ) { tmpDir in
537
537
// Set path to compiled manifest executable.
538
- cmd += [ " -o " , file. path. pathString]
539
-
540
- try Process . popen ( arguments: cmd)
538
+ let file = tmpDir. appending ( components: " \( packageIdentity) -manifest " )
539
+ cmd += [ " -o " , file. pathString]
541
540
542
541
// Compile the manifest.
543
542
let compilerResult = try Process . popen ( arguments: cmd)
@@ -550,7 +549,7 @@ public final class ManifestLoader: ManifestLoaderProtocol {
550
549
}
551
550
552
551
// Pass the fd in arguments.
553
- cmd = [ file. path . pathString, " -fileno " , " 1 " ]
552
+ cmd = [ file. pathString, " -fileno " , " 1 " ]
554
553
555
554
#if os(macOS)
556
555
// If enabled, use sandbox-exec on macOS. This provides some safety against
You can’t perform that action at this time.
0 commit comments