@@ -118,12 +118,12 @@ let package = Package(
118118 ] ,
119119 dependencies: [
120120 swiftJavaJNICoreDep,
121- . package ( url: " https://github.com/swiftlang/swift-syntax " , from: " 602 .0.0" ) ,
121+ . package ( url: " https://github.com/swiftlang/swift-syntax " , from: " 603 .0.0" ) ,
122122 . package ( url: " https://github.com/apple/swift-argument-parser " , from: " 1.5.0 " ) ,
123123 . package ( url: " https://github.com/apple/swift-system " , from: " 1.4.0 " ) ,
124124 . package ( url: " https://github.com/apple/swift-log " , from: " 1.2.0 " ) ,
125125 . package ( url: " https://github.com/apple/swift-collections " , . upToNextMinor( from: " 1.3.0 " ) ) , // primarily for ordered collections
126- . package ( url: " https://github.com/swiftlang/swift-subprocess.git " , from: " 0.2.1 " , traits: [ " SubprocessFoundation " ] ) ,
126+ . package ( url: " https://github.com/swiftlang/swift-subprocess.git " , from: " 0.4.0 " , traits: [ " SubprocessFoundation " ] ) ,
127127
128128 // Benchmarking
129129 . package ( url: " https://github.com/ordo-one/package-benchmark " , . upToNextMajor( from: " 1.4.0 " ) ) ,
@@ -320,6 +320,7 @@ let package = Package(
320320 dependencies: [
321321 . product( name: " SwiftBasicFormat " , package : " swift-syntax " ) ,
322322 . product( name: " SwiftLexicalLookup " , package : " swift-syntax " ) ,
323+ . product( name: " SwiftIfConfig " , package : " swift-syntax " ) ,
323324 . product( name: " SwiftSyntax " , package : " swift-syntax " ) ,
324325 . product( name: " SwiftSyntaxBuilder " , package : " swift-syntax " ) ,
325326 . product( name: " ArgumentParser " , package : " swift-argument-parser " ) ,
@@ -331,6 +332,25 @@ let package = Package(
331332 ] ,
332333 swiftSettings: [
333334 . swiftLanguageMode( . v5)
335+ ] ,
336+ plugins: [
337+ . plugin( name: " _StaticBuildConfigPlugin " )
338+ ]
339+ ) ,
340+
341+ . executableTarget(
342+ name: " StaticBuildConfigPluginExecutable " ,
343+ dependencies: [
344+ . product( name: " Subprocess " , package : " swift-subprocess " ) ,
345+ . product( name: " SwiftIfConfig " , package : " swift-syntax " ) ,
346+ ]
347+ ) ,
348+
349+ . plugin(
350+ name: " _StaticBuildConfigPlugin " ,
351+ capability: . buildTool( ) ,
352+ dependencies: [
353+ " StaticBuildConfigPluginExecutable "
334354 ]
335355 ) ,
336356
0 commit comments