Skip to content

Commit 95d0160

Browse files
authored
Fix to call didFinishCommand (#6757)
When `XCBuildDelegate` receives a `taskComplete` message, it calls `buildSystem(:didStartCommand:)` of `BuildSystemDelegate`. However, it should probably call `buildSystem(:didFinishCommand:)`. Since there doesn't seem to be any concrete type conforming to `BuildSystemDelegate`, this change doesn't appear to have any impact on the behavior of existing code.
1 parent 1c917e0 commit 95d0160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/XCBuildSupport/XCBuildDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ extension XCBuildDelegate: XCBuildOutputParserDelegate {
8181
}
8282
case .taskComplete(let info):
8383
queue.async {
84-
self.buildSystem.delegate?.buildSystem(self.buildSystem, didStartCommand: BuildSystemCommand(name: "\(info.taskID)", description: info.result.rawValue))
84+
self.buildSystem.delegate?.buildSystem(self.buildSystem, didFinishCommand: BuildSystemCommand(name: "\(info.taskID)", description: info.result.rawValue))
8585
}
8686
case .buildDiagnostic(let info):
8787
queue.async {

0 commit comments

Comments
 (0)