Skip to content

Commit 097e783

Browse files
committed
utils: integrate swift-subprocess build into build.ps1
This is in preparation for integrating swift-subprocess into swift-build.
1 parent dd5c029 commit 097e783

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
@@ -712,6 +712,7 @@ enum Project {
712712
ASN1
713713
Certificates
714714
System
715+
Subprocess
715716
Build
716717
PackageManager
717718
Markdown
@@ -2997,6 +2998,19 @@ function Build-System([Hashtable] $Platform) {
29972998
}
29982999
}
29993000

3001+
function Build-Subprocess([Hashtable] $Platform) {
3002+
Build-CMakeProject `
3003+
-Src $sourceCache\swift-subprocess `
3004+
-Bin (Get-ProjectBinaryCache $Platform Subprocess) `
3005+
-Platform $Platform `
3006+
-UseBuiltCompilers C,Swift `
3007+
-SwiftSDK (Get-SwiftSDK $Platform.OS) `
3008+
-Defines @{
3009+
BUILD_SHARED_LIBS = "NO";
3010+
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
3011+
}
3012+
}
3013+
30003014
function Build-Build([Hashtable] $Platform) {
30013015
# Use lld to workaround the ARM64 LNK1322 issue: https://github.com/swiftlang/swift/issues/79740
30023016
# FIXME(hjyamauchi) Have a real fix
@@ -3707,6 +3721,7 @@ if (-not $SkipBuild) {
37073721
Invoke-BuildStep Build-Collections $HostPlatform
37083722
Invoke-BuildStep Build-Certificates $HostPlatform
37093723
Invoke-BuildStep Build-System $HostPlatform
3724+
Invoke-BuildStep Build-Subprocess $HostPlatform
37103725
Invoke-BuildStep Build-Build $HostPlatform
37113726
Invoke-BuildStep Build-PackageManager $HostPlatform
37123727
Invoke-BuildStep Build-Markdown $HostPlatform

0 commit comments

Comments
 (0)