File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -529,10 +529,16 @@ public struct SDKPrebuiltModuleInputsCollector {
529529 }
530530
531531 private func sanitizeInterfaceMap( _ map: [ String : [ PrebuiltModuleInput ] ] ) -> [ String : [ PrebuiltModuleInput ] ] {
532- return map. filter {
532+ return map. compactMapValues { inputs in
533+ // Filter out .package.swiftinterface files
534+ return inputs. filter { input in
535+ !( input. path. file. extension == " swiftinterface " &&
536+ input. path. file. basenameWithoutExt. hasSuffix ( " .package " ) )
537+ }
538+ } . filter { key, value in
533539 // Remove modules without associated .swiftinterface files and diagnose.
534- if $0 . value. isEmpty {
535- diagEngine. emit ( . warning( " \( $0 . key) has no associated .swiftinterface files " ) ,
540+ if value. isEmpty {
541+ diagEngine. emit ( . warning( " \( key) has no associated .swiftinterface files " ) ,
536542 location: nil )
537543 return false
538544 }
You can’t perform that action at this time.
0 commit comments