Skip to content

Commit 5f6aad5

Browse files
committed
build.ps1: separate SPM runtime build
1 parent 261a412 commit 5f6aad5

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

utils/build.ps1

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,7 @@ enum Project {
850850
Subprocess
851851
Build
852852
PackageManager
853+
PackageManagerRuntime
853854
Markdown
854855
Format
855856
LMDB
@@ -3603,6 +3604,23 @@ function Build-PackageManager([Hashtable] $Platform) {
36033604
SQLite3_INCLUDE_DIR = "$SourceCache\swift-toolchain-sqlite\Sources\CSQLite\include";
36043605
SQLite3_LIBRARY = "$(Get-ProjectBinaryCache $Platform SQLite)\SQLite3.lib";
36053606
}
3607+
3608+
$SwiftSDK = if ($Platform.DefaultSDK -match "Experimental") {
3609+
Get-SwiftSDK -OS $Platform.OS -Identifier "$($Platform.OS)Experimental"
3610+
} else {
3611+
Get-SwiftSDK -OS $Platform.OS
3612+
}
3613+
Build-CMakeProject `
3614+
-Src $SrcDir\Sources\Runtimes `
3615+
-Bin (Get-ProjectBinaryCache $Platform PackageManagerRuntime) `
3616+
-InstallTo "$($Platform.ToolchainInstallRoot)\usr" `
3617+
-Platform $Platform `
3618+
-UseBuiltCompilers C,CXX,Swift `
3619+
-SwiftSDK $SwiftSDK `
3620+
-UseGNUDriver `
3621+
-Defines @{
3622+
BUILD_SHARED_LIBS = "YES";
3623+
}
36063624
}
36073625

36083626
function Build-Markdown([Hashtable] $Platform) {

0 commit comments

Comments
 (0)