@@ -39,32 +39,6 @@ public enum BuildSubset {
39
39
/// build systems can produce all possible build outputs. Check the build
40
40
/// result for indication that the output was produced.
41
41
public enum BuildOutput : Equatable {
42
- public static func == ( lhs: BuildOutput , rhs: BuildOutput ) -> Bool {
43
- switch lhs {
44
- case . symbolGraph( let leftOptions) :
45
- switch rhs {
46
- case . symbolGraph( let rightOptions) :
47
- return leftOptions == rightOptions
48
- default :
49
- return false
50
- }
51
- case . buildPlan:
52
- switch rhs {
53
- case . buildPlan:
54
- return true
55
- default :
56
- return false
57
- }
58
- case . replArguments:
59
- switch rhs {
60
- case . replArguments:
61
- return true
62
- default :
63
- return false
64
- }
65
- }
66
- }
67
-
68
42
public enum SymbolGraphAccessLevel : String {
69
43
case `private`, `fileprivate`, `internal`, `package`, `public`, `open`
70
44
}
@@ -93,6 +67,7 @@ public enum BuildOutput: Equatable {
93
67
case symbolGraph( SymbolGraphOptions )
94
68
case buildPlan
95
69
case replArguments
70
+ case builtArtifacts
96
71
}
97
72
98
73
/// A protocol that represents a build system used by SwiftPM for all build operations. This allows factoring out the
@@ -144,19 +119,22 @@ public struct BuildResult {
144
119
serializedDiagnosticPathsByTargetName: Result < [ String : [ AbsolutePath ] ] , Error > ,
145
120
symbolGraph: SymbolGraphResult ? = nil ,
146
121
buildPlan: BuildPlan ? = nil ,
147
- replArguments: CLIArguments ?
122
+ replArguments: CLIArguments ? ,
123
+ builtArtifacts: [ ( String , PluginInvocationBuildResult . BuiltArtifact ) ] ? = nil
148
124
) {
149
125
self . serializedDiagnosticPathsByTargetName = serializedDiagnosticPathsByTargetName
150
126
self . symbolGraph = symbolGraph
151
127
self . buildPlan = buildPlan
152
128
self . replArguments = replArguments
129
+ self . builtArtifacts = builtArtifacts
153
130
}
154
131
155
132
public let replArguments : CLIArguments ?
156
133
public let symbolGraph : SymbolGraphResult ?
157
134
public let buildPlan : BuildPlan ?
158
135
159
136
public var serializedDiagnosticPathsByTargetName : Result < [ String : [ AbsolutePath ] ] , Error >
137
+ public var builtArtifacts : [ ( String , PluginInvocationBuildResult . BuiltArtifact ) ] ?
160
138
}
161
139
162
140
public protocol ProductBuildDescription {
0 commit comments