Skip to content

Commit b8afea7

Browse files
committed
Emit some missing newlines when emitting output from the linker to the build transcript.
rdar://162789686
1 parent caef478 commit b8afea7

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Sources/SWBCore/SpecImplementations/Tools/LinkerTools.swift

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)