@@ -58,22 +58,42 @@ var prebuiltRepos: IdentifiableSet<PrebuiltRepos> = [
58
58
" SwiftParserDiagnostics " ,
59
59
" SwiftRefactor " ,
60
60
" SwiftSyntax " ,
61
+ " SwiftSyntaxBuilder " ,
61
62
" SwiftSyntaxMacros " ,
62
63
" SwiftSyntaxMacroExpansion " ,
63
64
" SwiftSyntaxMacrosTestSupport " ,
64
65
" SwiftSyntaxMacrosGenericTestSupport " ,
66
+ " _SwiftCompilerPluginMessageHandling " ,
67
+ " _SwiftLibraryPluginProvider " ,
65
68
] ,
66
69
cModules: [
67
70
" _SwiftSyntaxCShims " ,
68
71
]
69
72
) ,
70
-
71
73
] ) ,
72
74
cModulePaths: [
73
75
" _SwiftSyntaxCShims " : [ " Sources " , " _SwiftSyntaxCShims " ]
74
76
] ,
75
77
addProduct: { library, repoDir in
76
- try await shell ( " swift package add-product \( library. name) --type static-library --targets \( library. products. joined ( separator: " " ) ) " , cwd: repoDir)
78
+ let targets = [
79
+ " SwiftBasicFormat " ,
80
+ " SwiftCompilerPlugin " ,
81
+ " SwiftDiagnostics " ,
82
+ " SwiftIDEUtils " ,
83
+ " SwiftOperators " ,
84
+ " SwiftParser " ,
85
+ " SwiftParserDiagnostics " ,
86
+ " SwiftRefactor " ,
87
+ " SwiftSyntax " ,
88
+ " SwiftSyntaxBuilder " ,
89
+ " SwiftSyntaxMacros " ,
90
+ " SwiftSyntaxMacroExpansion " ,
91
+ " SwiftSyntaxMacrosTestSupport " ,
92
+ " SwiftSyntaxMacrosGenericTestSupport " ,
93
+ " SwiftCompilerPluginMessageHandling " ,
94
+ " SwiftLibraryPluginProvider " ,
95
+ ]
96
+ try await shell ( " swift package add-product \( library. name) --type static-library --targets \( targets. joined ( separator: " " ) ) " , cwd: repoDir)
77
97
}
78
98
) ,
79
99
. init(
@@ -86,15 +106,20 @@ var prebuiltRepos: IdentifiableSet<PrebuiltRepos> = [
86
106
" SwiftCompilerPlugin " ,
87
107
" SwiftDiagnostics " ,
88
108
" SwiftIDEUtils " ,
109
+ " SwiftIfConfig " ,
110
+ " SwiftLexicalLookup " ,
89
111
" SwiftOperators " ,
90
112
" SwiftParser " ,
91
113
" SwiftParserDiagnostics " ,
92
114
" SwiftRefactor " ,
93
115
" SwiftSyntax " ,
116
+ " SwiftSyntaxBuilder " ,
94
117
" SwiftSyntaxMacros " ,
95
118
" SwiftSyntaxMacroExpansion " ,
96
119
" SwiftSyntaxMacrosTestSupport " ,
97
120
" SwiftSyntaxMacrosGenericTestSupport " ,
121
+ " _SwiftCompilerPluginMessageHandling " ,
122
+ " _SwiftLibraryPluginProvider " ,
98
123
] ,
99
124
cModules: [
100
125
" _SwiftSyntaxCShims " ,
@@ -106,13 +131,33 @@ var prebuiltRepos: IdentifiableSet<PrebuiltRepos> = [
106
131
" _SwiftSyntaxCShims " : [ " Sources " , " _SwiftSyntaxCShims " ]
107
132
] ,
108
133
addProduct: { library, repoDir in
134
+ let targets = [
135
+ " SwiftBasicFormat " ,
136
+ " SwiftCompilerPlugin " ,
137
+ " SwiftDiagnostics " ,
138
+ " SwiftIDEUtils " ,
139
+ " SwiftIfConfig " ,
140
+ " SwiftLexicalLookup " ,
141
+ " SwiftOperators " ,
142
+ " SwiftParser " ,
143
+ " SwiftParserDiagnostics " ,
144
+ " SwiftRefactor " ,
145
+ " SwiftSyntax " ,
146
+ " SwiftSyntaxBuilder " ,
147
+ " SwiftSyntaxMacros " ,
148
+ " SwiftSyntaxMacroExpansion " ,
149
+ " SwiftSyntaxMacrosTestSupport " ,
150
+ " SwiftSyntaxMacrosGenericTestSupport " ,
151
+ " SwiftCompilerPluginMessageHandling " ,
152
+ " SwiftLibraryPluginProvider " ,
153
+ ]
109
154
// swift package add-product doesn't work here since it's now computed
110
155
let packageFile = repoDir. appending ( component: " Package.swift " )
111
156
var package = try String ( contentsOf: packageFile. asURL)
112
157
package . replace ( " products: products, " , with: """
113
158
products: products + [
114
159
.library(name: " \( library. name) " , type: .static, targets: [
115
- \( library . products . map ( { " \" \( $0) \" " } ) . joined ( separator: " , " ) )
160
+ \( targets . map ( { " \" \( $0) \" " } ) . joined ( separator: " , " ) )
116
161
])
117
162
],
118
163
""" )
0 commit comments