File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -853,6 +853,7 @@ enum Project {
853
853
Subprocess
854
854
Build
855
855
PackageManager
856
+ PackageManagerRuntime
856
857
Markdown
857
858
Format
858
859
LMDB
@@ -3585,6 +3586,27 @@ function Build-PackageManager([Hashtable] $Platform) {
3585
3586
}
3586
3587
}
3587
3588
3589
+ function Build-PackageManagerRuntime ([Hashtable ] $Platform ) {
3590
+ $SrcDir = if (Test-Path - Path " $SourceCache \swift-package-manager" - PathType Container) {
3591
+ " $SourceCache \swift-package-manager"
3592
+ } else {
3593
+ " $SourceCache \swiftpm"
3594
+ }
3595
+
3596
+ Build-CMakeProject `
3597
+ - Src $SrcDir \Sources\Runtimes `
3598
+ - Bin (Get-ProjectBinaryCache $Platform PackageManagerRuntime) `
3599
+ - InstallTo " $ ( $Platform.ToolchainInstallRoot ) \usr" `
3600
+ - Platform $Platform `
3601
+ - UseBuiltCompilers C, CXX, Swift `
3602
+ - SwiftSDK (Get-SwiftSDK - OS $Platform.OS - Identifier $Platform.DefaultSDK ) `
3603
+ - UseGNUDriver `
3604
+ - Defines @ {
3605
+ BUILD_SHARED_LIBS = " YES" ;
3606
+ SwiftPM_ENABLE_RUNTIME = " NO" ;
3607
+ }
3608
+ }
3609
+
3588
3610
function Build-Markdown ([Hashtable ] $Platform ) {
3589
3611
Build-CMakeProject `
3590
3612
- Src $SourceCache \swift- markdown `
@@ -4116,6 +4138,8 @@ if (-not $SkipBuild) {
4116
4138
4117
4139
Write-PlatformInfoPlist Windows
4118
4140
4141
+ Invoke-BuildStep Build-PackageManagerRuntime $HostPlatform
4142
+
4119
4143
# Copy static dependencies
4120
4144
foreach ($Build in $WindowsSDKBuilds ) {
4121
4145
if (-not $Build.LinkModes.Contains (" static" )) { continue }
You can’t perform that action at this time.
0 commit comments