@@ -80,6 +80,7 @@ let swiftPMProduct = (
80
80
" LLBuildManifest " ,
81
81
" SourceKitLSPAPI " ,
82
82
" SPMLLBuild " ,
83
+ " SwiftBuildSupport " ,
83
84
]
84
85
)
85
86
@@ -184,20 +185,6 @@ let package = Package(
184
185
) ,
185
186
] ,
186
187
targets: [
187
- // The `PackageDescription` target provides the API that is available
188
- // to `Package.swift` manifests. Here we build a debug version of the
189
- // library; the bootstrap scripts build the deployable version.
190
- . target(
191
- name: " PackageDescription " ,
192
- exclude: [ " CMakeLists.txt " ] ,
193
- swiftSettings: commonExperimentalFeatures + [
194
- . define( " USE_IMPL_ONLY_IMPORTS " ) ,
195
- . unsafeFlags( [ " -package-description-version " , " 999.0 " ] ) ,
196
- . unsafeFlags( [ " -enable-library-evolution " ] ) ,
197
- ] ,
198
- linkerSettings: packageLibraryLinkSettings
199
- ) ,
200
-
201
188
// The `AppleProductTypes` target provides additional product types
202
189
// to `Package.swift` manifests. Here we build a debug version of the
203
190
// library; the bootstrap scripts build the deployable version.
@@ -213,19 +200,6 @@ let package = Package(
213
200
. unsafeFlags( [ " -Xfrontend " , " -module-link-name " , " -Xfrontend " , " AppleProductTypes " ] )
214
201
] ) ,
215
202
216
- // The `PackagePlugin` target provides the API that is available to
217
- // plugin scripts. Here we build a debug version of the library; the
218
- // bootstrap scripts build the deployable version.
219
- . target(
220
- name: " PackagePlugin " ,
221
- exclude: [ " CMakeLists.txt " ] ,
222
- swiftSettings: commonExperimentalFeatures + [
223
- . unsafeFlags( [ " -package-description-version " , " 999.0 " ] ) ,
224
- . unsafeFlags( [ " -enable-library-evolution " ] ) ,
225
- ] ,
226
- linkerSettings: packageLibraryLinkSettings
227
- ) ,
228
-
229
203
. target(
230
204
name: " SourceKitLSPAPI " ,
231
205
dependencies: [
@@ -775,11 +749,41 @@ let package = Package(
775
749
]
776
750
) ,
777
751
752
+ // The `PackageDescription` target provides the API that is available
753
+ // to `Package.swift` manifests. Here we build a debug version of the
754
+ // library; the bootstrap scripts build the deployable version.
755
+ . target(
756
+ name: " PackageDescription " ,
757
+ path: " Sources/Runtimes/PackageDescription " ,
758
+ exclude: [ " CMakeLists.txt " ] ,
759
+ swiftSettings: commonExperimentalFeatures + [
760
+ . define( " USE_IMPL_ONLY_IMPORTS " ) ,
761
+ . unsafeFlags( [ " -package-description-version " , " 999.0 " ] ) ,
762
+ . unsafeFlags( [ " -enable-library-evolution " ] ) ,
763
+ ] ,
764
+ linkerSettings: packageLibraryLinkSettings
765
+ ) ,
766
+
767
+ // The `PackagePlugin` target provides the API that is available to
768
+ // plugin scripts. Here we build a debug version of the library; the
769
+ // bootstrap scripts build the deployable version.
770
+ . target(
771
+ name: " PackagePlugin " ,
772
+ path: " Sources/Runtimes/PackagePlugin " ,
773
+ exclude: [ " CMakeLists.txt " ] ,
774
+ swiftSettings: commonExperimentalFeatures + [
775
+ . unsafeFlags( [ " -package-description-version " , " 999.0 " ] ) ,
776
+ . unsafeFlags( [ " -enable-library-evolution " ] ) ,
777
+ ] ,
778
+ linkerSettings: packageLibraryLinkSettings
779
+ ) ,
780
+
778
781
// MARK: Support for Swift macros, should eventually move to a plugin-based solution
779
782
780
783
. target(
781
784
name: " CompilerPluginSupport " ,
782
785
dependencies: [ " PackageDescription " ] ,
786
+ path: " Sources/Runtimes/CompilerPluginSupport " ,
783
787
exclude: [ " CMakeLists.txt " ] ,
784
788
swiftSettings: commonExperimentalFeatures + [
785
789
. unsafeFlags( [ " -package-description-version " , " 999.0 " ] ) ,
@@ -789,19 +793,19 @@ let package = Package(
789
793
790
794
// MARK: Additional Test Dependencies
791
795
792
- . target(
793
- /** SwiftPM internal build test suite support library */
794
- name: " _InternalBuildTestSupport " ,
795
- dependencies: [
796
- " Build " ,
797
- " XCBuildSupport " ,
798
- " SwiftBuildSupport " ,
799
- " _InternalTestSupport "
800
- ] ,
801
- swiftSettings: [
802
- . unsafeFlags( [ " -static " ] ) ,
803
- ]
804
- ) ,
796
+ . target(
797
+ /** SwiftPM internal build test suite support library */
798
+ name: " _InternalBuildTestSupport " ,
799
+ dependencies: [
800
+ " Build " ,
801
+ " XCBuildSupport " ,
802
+ " SwiftBuildSupport " ,
803
+ " _InternalTestSupport "
804
+ ] ,
805
+ swiftSettings: [
806
+ . unsafeFlags( [ " -static " ] ) ,
807
+ ]
808
+ ) ,
805
809
806
810
. target(
807
811
/** SwiftPM internal test suite support library */
0 commit comments