@@ -99,7 +99,7 @@ public final class ArgsResolver {
99
99
case let . fileList( _, . list( items) ) :
100
100
try createFileList ( path: actualPath, contents: items, quotePaths: quotePaths)
101
101
case let . fileList( _, . outputFileMap( map) ) :
102
- try createFileList ( path: actualPath, outputFileMap: map, quotePaths : quotePaths )
102
+ try createFileList ( path: actualPath, outputFileMap: map)
103
103
case . relative, . absolute, . standardInput, . standardOutput:
104
104
fatalError ( " Not a temporary path. " )
105
105
}
@@ -126,7 +126,7 @@ public final class ArgsResolver {
126
126
}
127
127
}
128
128
129
- private func createFileList( path: VirtualPath , outputFileMap: OutputFileMap , quotePaths : Bool )
129
+ private func createFileList( path: VirtualPath , outputFileMap: OutputFileMap )
130
130
throws {
131
131
// FIXME: Need a way to support this for distributed build systems...
132
132
if let absPath = path. absolutePath {
@@ -135,22 +135,22 @@ public final class ArgsResolver {
135
135
// and the frontend (llvm) only seems to support implicit block format.
136
136
try fileSystem. writeFileContents ( absPath) { out in
137
137
for (input, map) in outputFileMap. entries {
138
- out <<< quoteAndEscape ( path: input, quotePaths : quotePaths ) <<< " : "
138
+ out <<< quoteAndEscape ( path: input) <<< " : "
139
139
if map. isEmpty {
140
140
out <<< " {} \n "
141
141
} else {
142
142
out <<< " \n "
143
143
for (type, output) in map {
144
- out <<< " " <<< type. name <<< " : " <<< quoteAndEscape ( path: output, quotePaths : quotePaths ) <<< " \n "
144
+ out <<< " " <<< type. name <<< " : " <<< quoteAndEscape ( path: output) <<< " \n "
145
145
}
146
146
}
147
147
}
148
148
}
149
149
}
150
150
}
151
151
152
- private func quoteAndEscape( path: VirtualPath , quotePaths : Bool ) -> String {
153
- let inputNode = Node . scalar ( Node . Scalar ( try ! unsafeResolve ( path: path, quotePaths: quotePaths ) ,
152
+ private func quoteAndEscape( path: VirtualPath ) -> String {
153
+ let inputNode = Node . scalar ( Node . Scalar ( try ! unsafeResolve ( path: path, quotePaths: false ) ,
154
154
Tag ( . str) , . doubleQuoted) )
155
155
// Width parameter of -1 sets preferred line-width to unlimited so that no extraneous
156
156
// line-breaks will be inserted during serialization.
0 commit comments