@@ -17,7 +17,6 @@ struct SwiftTargets {
17
17
private var dependenciesByTargetName : [ String : Set < String > ] = [ : ]
18
18
private var targetsByName : [ String : SwiftTarget ] = [ : ]
19
19
private var targetsByOutput : [ String : SwiftTarget ] = [ : ]
20
- private var addedFiles : Set < RelativePath > = [ ]
21
20
22
21
// Track some state for debugging
23
22
private var debugLogUnknownFlags : Set < String > = [ ]
@@ -204,22 +203,10 @@ struct SwiftTargets {
204
203
var buildRule : SwiftTarget . BuildRule ?
205
204
var emitModuleRule : SwiftTarget . EmitModuleRule ?
206
205
if forBuild && !repoSources. isEmpty {
207
- // Bail if we've already recorded a target with one of these inputs.
208
- // TODO: Attempt to merge?
209
- // TODO: Should we be doing this later?
210
- for input in repoSources {
211
- guard addedFiles. insert ( input) . inserted else {
212
- log. debug ( """
213
- ! Skipping ' \( name) ' with output ' \( primaryOutput) '; \
214
- contains input ' \( input) ' already added
215
- """ )
216
- return
217
- }
218
- }
219
206
// We've already ensured that `repoSources` is non-empty.
220
- let parent = repoSources. commonAncestor!
221
207
buildRule = . init(
222
- parentPath: parent, sources: sources, buildArgs: buildArgs
208
+ parentPath: repoSources. commonAncestor!, sources: sources,
209
+ buildArgs: buildArgs
223
210
)
224
211
}
225
212
if forModule {
0 commit comments