@@ -45,18 +45,18 @@ let package = Package(
4545 . macCatalyst( . v13) ,
4646 ] ,
4747 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 " ] ) ,
6060 ] ,
6161 targets: [
6262 // MARK: - Internal helper targets
@@ -277,6 +277,22 @@ let package = Package(
277277 ]
278278)
279279
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+
280296if ProcessInfo . processInfo. environment [ " SWIFTCI_USE_LOCAL_DEPS " ] == nil {
281297 // Building standalone.
282298 package . dependencies += [
0 commit comments