@@ -45,18 +45,18 @@ let package = Package(
45
45
. macCatalyst( . v13) ,
46
46
] ,
47
47
products: [
48
- . library( name: " SwiftCompilerPlugin " , type : . static , targets: [ " SwiftCompilerPlugin " ] ) ,
49
- . library( name: " SwiftCompilerPluginMessageHandling " , type : . static , targets: [ " SwiftCompilerPluginMessageHandling " ] ) ,
50
- . library( name: " SwiftDiagnostics " , type : . static , targets: [ " SwiftDiagnostics " ] ) ,
51
- . library( name: " SwiftIDEUtils " , type : . static , targets: [ " SwiftIDEUtils " ] ) ,
52
- . library( name: " SwiftOperators " , type : . static , targets: [ " SwiftOperators " ] ) ,
53
- . library( name: " SwiftParser " , type : . static , targets: [ " SwiftParser " ] ) ,
54
- . library( name: " SwiftParserDiagnostics " , type : . static , targets: [ " SwiftParserDiagnostics " ] ) ,
55
- . library( name: " SwiftRefactor " , type : . static , targets: [ " SwiftRefactor " ] ) ,
56
- . library( name: " SwiftSyntax " , type : . static , targets: [ " SwiftSyntax " ] ) ,
57
- . library( name: " SwiftSyntaxBuilder " , type : . static , targets: [ " SwiftSyntaxBuilder " ] ) ,
58
- . library( name: " SwiftSyntaxMacros " , type : . static , targets: [ " SwiftSyntaxMacros " ] ) ,
59
- . library( name: " SwiftSyntaxMacrosTestSupport " , type : . static , targets: [ " SwiftSyntaxMacrosTestSupport " ] ) ,
48
+ . library( name: " SwiftCompilerPlugin " , targets: [ " SwiftCompilerPlugin " ] ) ,
49
+ . library( name: " SwiftCompilerPluginMessageHandling " , targets: [ " SwiftCompilerPluginMessageHandling " ] ) ,
50
+ . library( name: " SwiftDiagnostics " , targets: [ " SwiftDiagnostics " ] ) ,
51
+ . library( name: " SwiftIDEUtils " , targets: [ " SwiftIDEUtils " ] ) ,
52
+ . library( name: " SwiftOperators " , targets: [ " SwiftOperators " ] ) ,
53
+ . library( name: " SwiftParser " , targets: [ " SwiftParser " ] ) ,
54
+ . library( name: " SwiftParserDiagnostics " , targets: [ " SwiftParserDiagnostics " ] ) ,
55
+ . library( name: " SwiftRefactor " , targets: [ " SwiftRefactor " ] ) ,
56
+ . library( name: " SwiftSyntax " , targets: [ " SwiftSyntax " ] ) ,
57
+ . library( name: " SwiftSyntaxBuilder " , targets: [ " SwiftSyntaxBuilder " ] ) ,
58
+ . library( name: " SwiftSyntaxMacros " , targets: [ " SwiftSyntaxMacros " ] ) ,
59
+ . library( name: " SwiftSyntaxMacrosTestSupport " , targets: [ " SwiftSyntaxMacrosTestSupport " ] ) ,
60
60
] ,
61
61
targets: [
62
62
// MARK: - Internal helper targets
@@ -277,6 +277,22 @@ let package = Package(
277
277
]
278
278
)
279
279
280
+ // This is a fake target that depends on all targets in the package.
281
+ // We need to define it manually because the `SwiftSyntax-Package` target doesn't exist for `swift build`.
282
+
283
+ package . targets. append (
284
+ . target(
285
+ name: " SwiftSyntax-all " ,
286
+ dependencies: package . targets. compactMap {
287
+ if $0. type == . test {
288
+ return nil
289
+ } else {
290
+ return . byName( name: $0. name)
291
+ }
292
+ }
293
+ )
294
+ )
295
+
280
296
if ProcessInfo . processInfo. environment [ " SWIFTCI_USE_LOCAL_DEPS " ] == nil {
281
297
// Building standalone.
282
298
package . dependencies += [
0 commit comments