File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -850,6 +850,7 @@ enum Project {
850
850
Subprocess
851
851
Build
852
852
PackageManager
853
+ PackageManagerRuntime
853
854
Markdown
854
855
Format
855
856
LMDB
@@ -3605,6 +3606,31 @@ function Build-PackageManager([Hashtable] $Platform) {
3605
3606
}
3606
3607
}
3607
3608
3609
+ function Build-PackageManagerRuntime ([Hashtable ] $Platform ) {
3610
+ $SrcDir = if (Test-Path - Path " $SourceCache \swift-package-manager" - PathType Container) {
3611
+ " $SourceCache \swift-package-manager"
3612
+ } else {
3613
+ " $SourceCache \swiftpm"
3614
+ }
3615
+
3616
+ $SwiftSDK = if ($Platform.DefaultSDK -match " Experimental" ) {
3617
+ Get-SwiftSDK - OS $Platform.OS - Identifier " $ ( $Platform.OS ) Experimental"
3618
+ } else {
3619
+ Get-SwiftSDK - OS $Platform.OS
3620
+ }
3621
+ Build-CMakeProject `
3622
+ - Src $SrcDir \Sources\Runtimes `
3623
+ - Bin (Get-ProjectBinaryCache $Platform PackageManagerRuntime) `
3624
+ - InstallTo " $ ( $Platform.ToolchainInstallRoot ) \usr" `
3625
+ - Platform $Platform `
3626
+ - UseBuiltCompilers C, CXX, Swift `
3627
+ - SwiftSDK $SwiftSDK `
3628
+ - UseGNUDriver `
3629
+ - Defines @ {
3630
+ BUILD_SHARED_LIBS = " YES" ;
3631
+ }
3632
+ }
3633
+
3608
3634
function Build-Markdown ([Hashtable ] $Platform ) {
3609
3635
Build-CMakeProject `
3610
3636
- Src $SourceCache \swift- markdown `
@@ -4166,6 +4192,8 @@ if (-not $SkipBuild) {
4166
4192
}
4167
4193
4168
4194
Write-PlatformInfoPlist Windows
4195
+
4196
+ Invoke-BuildStep Build-PackageManagerRuntime $HostPlatform
4169
4197
}
4170
4198
4171
4199
if ($Android ) {
You can’t perform that action at this time.
0 commit comments