Skip to content

Commit 2b8c4a0

Browse files
authored
Merge pull request #83518 from compnerd/subprocess
utils: integrate swift-subprocess build into build.ps1
2 parents 016e55b + 097e783 commit 2b8c4a0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

utils/build.ps1

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,7 @@ enum Project {
707707
ASN1
708708
Certificates
709709
System
710+
Subprocess
710711
Build
711712
PackageManager
712713
Markdown
@@ -3018,6 +3019,19 @@ function Build-System([Hashtable] $Platform) {
30183019
}
30193020
}
30203021

3022+
function Build-Subprocess([Hashtable] $Platform) {
3023+
Build-CMakeProject `
3024+
-Src $sourceCache\swift-subprocess `
3025+
-Bin (Get-ProjectBinaryCache $Platform Subprocess) `
3026+
-Platform $Platform `
3027+
-UseBuiltCompilers C,Swift `
3028+
-SwiftSDK (Get-SwiftSDK $Platform.OS) `
3029+
-Defines @{
3030+
BUILD_SHARED_LIBS = "NO";
3031+
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
3032+
}
3033+
}
3034+
30213035
function Build-Build([Hashtable] $Platform) {
30223036
# Use lld to workaround the ARM64 LNK1322 issue: https://github.com/swiftlang/swift/issues/79740
30233037
# FIXME(hjyamauchi) Have a real fix
@@ -3728,6 +3742,7 @@ if (-not $SkipBuild) {
37283742
Invoke-BuildStep Build-Collections $HostPlatform
37293743
Invoke-BuildStep Build-Certificates $HostPlatform
37303744
Invoke-BuildStep Build-System $HostPlatform
3745+
Invoke-BuildStep Build-Subprocess $HostPlatform
37313746
Invoke-BuildStep Build-Build $HostPlatform
37323747
Invoke-BuildStep Build-PackageManager $HostPlatform
37333748
Invoke-BuildStep Build-Markdown $HostPlatform

0 commit comments

Comments
 (0)