File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Sources/SWBCore/SpecImplementations/Tools Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -211,13 +211,17 @@ public struct DiscoveredLdLinkerToolSpecInfo: DiscoveredCommandLineToolSpecInfo
211211 }
212212
213213 // Forward the bytes
214- let processedBytes = ByteString ( processedLines. joined ( separator: ByteString ( " \n " ) ) )
215- delegate. emitOutput ( processedBytes)
214+ processedLines. forEach {
215+ delegate. emitOutput ( $0)
216+ delegate. emitOutput ( " \n " )
217+ }
216218 }
217219 else {
218220 // Forward the bytes
219- let processedBytes = ByteString ( linesToParse. joined ( separator: ByteString ( " \n " ) ) )
220- delegate. emitOutput ( processedBytes)
221+ linesToParse. forEach {
222+ delegate. emitOutput ( ByteString ( $0) )
223+ delegate. emitOutput ( " \n " )
224+ }
221225 }
222226
223227 // Parse any complete lines of output.
You can’t perform that action at this time.
0 commit comments