You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Any unparsed bytes belong to the first line. We don't want to run `split` over these because it can lead to accidentally quadratic behavior if write is called many times per line.
185
+
lines[0]= unparsedBytes + lines[0]
186
+
187
+
letlinesToParse= lines.dropLast()
188
+
189
+
iflet target =self.task.forTarget?.target {
190
+
// Linker errors and warnings take more effort to get actionable information out of build logs than those for source files. This is because the linker does not have the path to the project or target name so they are not included in the message.
191
+
//
192
+
// Prepend the path to the project and target name to any error or warning lines.
193
+
// Example input:
194
+
// ld: warning: linking with (/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio) but not using any symbols from it
195
+
// Example output:
196
+
// /Path/To/ProjectFolder/ProjectName.xcodeproj: TargetName: ld: warning: linking with (/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio) but not using any symbols from it
if undefinedSymbols.count > undefinedSymbolCountLimit {
197
-
delegate.diagnosticsEngine.emit(Diagnostic(behavior:.note, location:.unknown, data:DiagnosticData("(\(undefinedSymbols.count - undefinedSymbolCountLimit) additional undefined symbols are shown in the transcript"), appendToOutputStream:false))
254
+
delegate.diagnosticsEngine.emit(Diagnostic(behavior:.note, location:projectLocation, data:DiagnosticData("(\(undefinedSymbols.count - undefinedSymbolCountLimit) additional undefined symbols are shown in the transcript"), appendToOutputStream:false))
198
255
}
199
256
collectingUndefinedSymbols =false
200
257
undefinedSymbols =[]
@@ -213,7 +270,9 @@ public struct DiscoveredLdLinkerToolSpecInfo: DiscoveredCommandLineToolSpecInfo
@@ -724,7 +783,9 @@ public final class LdLinkerSpec : GenericLinkerSpec, SpecIdentifierType, @unchec
724
783
enumerateLinkerCommandLine(arguments: commandLine, handleWl: cbc.scope.evaluate(BuiltinMacros._DISCOVER_COMMAND_LINE_LINKER_INPUTS_INCLUDE_WL)){ arg, value in
0 commit comments