Skip to content

Commit e0748bf

Browse files
committed
Do not add extra option to quote paths when resolving arguments for filelist creation.
1 parent fb4e3e6 commit e0748bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/SwiftDriver/Execution/ArgsResolver.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public final class ArgsResolver {
9797
try fileSystem.writeFileContents(absolutePath, bytes: .init(contents))
9898
}
9999
case let .fileList(_, .list(items)):
100-
try createFileList(path: actualPath, contents: items, quotePaths: quotePaths)
100+
try createFileList(path: actualPath, contents: items)
101101
case let .fileList(_, .outputFileMap(map)):
102102
try createFileList(path: actualPath, outputFileMap: map)
103103
case .relative, .absolute, .standardInput, .standardOutput:
@@ -115,12 +115,12 @@ public final class ArgsResolver {
115115
return quotePaths ? "'\(result)'" : result
116116
}
117117

118-
private func createFileList(path: VirtualPath, contents: [VirtualPath], quotePaths: Bool) throws {
118+
private func createFileList(path: VirtualPath, contents: [VirtualPath]) throws {
119119
// FIXME: Need a way to support this for distributed build systems...
120120
if let absPath = path.absolutePath {
121121
try fileSystem.writeFileContents(absPath) { out in
122122
for path in contents {
123-
try! out <<< unsafeResolve(path: path, quotePaths: quotePaths) <<< "\n"
123+
try! out <<< unsafeResolve(path: path, quotePaths: false) <<< "\n"
124124
}
125125
}
126126
}

0 commit comments

Comments
 (0)