@@ -184,20 +184,6 @@ let package = Package(
184184 ) ,
185185 ] ,
186186 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-
201187 // The `AppleProductTypes` target provides additional product types
202188 // to `Package.swift` manifests. Here we build a debug version of the
203189 // library; the bootstrap scripts build the deployable version.
@@ -213,19 +199,6 @@ let package = Package(
213199 . unsafeFlags( [ " -Xfrontend " , " -module-link-name " , " -Xfrontend " , " AppleProductTypes " ] )
214200 ] ) ,
215201
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-
229202 . target(
230203 name: " SourceKitLSPAPI " ,
231204 dependencies: [
@@ -775,11 +748,41 @@ let package = Package(
775748 ]
776749 ) ,
777750
751+ // The `PackageDescription` target provides the API that is available
752+ // to `Package.swift` manifests. Here we build a debug version of the
753+ // library; the bootstrap scripts build the deployable version.
754+ . target(
755+ name: " PackageDescription " ,
756+ path: " Sources/Runtimes/PackageDescription " ,
757+ exclude: [ " CMakeLists.txt " ] ,
758+ swiftSettings: commonExperimentalFeatures + [
759+ . define( " USE_IMPL_ONLY_IMPORTS " ) ,
760+ . unsafeFlags( [ " -package-description-version " , " 999.0 " ] ) ,
761+ . unsafeFlags( [ " -enable-library-evolution " ] ) ,
762+ ] ,
763+ linkerSettings: packageLibraryLinkSettings
764+ ) ,
765+
766+ // The `PackagePlugin` target provides the API that is available to
767+ // plugin scripts. Here we build a debug version of the library; the
768+ // bootstrap scripts build the deployable version.
769+ . target(
770+ name: " PackagePlugin " ,
771+ path: " Sources/Runtimes/PackagePlugin " ,
772+ exclude: [ " CMakeLists.txt " ] ,
773+ swiftSettings: commonExperimentalFeatures + [
774+ . unsafeFlags( [ " -package-description-version " , " 999.0 " ] ) ,
775+ . unsafeFlags( [ " -enable-library-evolution " ] ) ,
776+ ] ,
777+ linkerSettings: packageLibraryLinkSettings
778+ ) ,
779+
778780 // MARK: Support for Swift macros, should eventually move to a plugin-based solution
779781
780782 . target(
781783 name: " CompilerPluginSupport " ,
782784 dependencies: [ " PackageDescription " ] ,
785+ path: " Sources/Runtimes/CompilerPluginSupport " ,
783786 exclude: [ " CMakeLists.txt " ] ,
784787 swiftSettings: commonExperimentalFeatures + [
785788 . unsafeFlags( [ " -package-description-version " , " 999.0 " ] ) ,
@@ -789,19 +792,19 @@ let package = Package(
789792
790793 // MARK: Additional Test Dependencies
791794
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- ) ,
795+ . target(
796+ /** SwiftPM internal build test suite support library */
797+ name: " _InternalBuildTestSupport " ,
798+ dependencies: [
799+ " Build " ,
800+ " XCBuildSupport " ,
801+ " SwiftBuildSupport " ,
802+ " _InternalTestSupport "
803+ ] ,
804+ swiftSettings: [
805+ . unsafeFlags( [ " -static " ] ) ,
806+ ]
807+ ) ,
805808
806809 . target(
807810 /** SwiftPM internal test suite support library */
0 commit comments