Skip to content

Commit 42f2d61

Browse files
committed
utils: adjust Windows build to use shared LMDB
This adjusts the build to create a shared (static) build of LMDB. Re-order the build rules, wire up the LMDB build into IndexStoreDB and SourceKit-LSP.
1 parent 201edb8 commit 42f2d61

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

utils/build.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,9 +449,9 @@ enum HostComponent {
449449
PackageManager
450450
Markdown
451451
Format
452+
LMDB
452453
IndexStoreDB
453454
SourceKitLSP
454-
LMDB
455455
SymbolKit
456456
DocC
457457
}
@@ -2454,6 +2454,7 @@ function Build-IndexStoreDB($Arch) {
24542454
BUILD_SHARED_LIBS = "NO";
24552455
CMAKE_C_FLAGS = @("-I$SDKInstallRoot\usr\include", "-I$SDKInstallRoot\usr\include\Block");
24562456
CMAKE_CXX_FLAGS = @("-I$SDKInstallRoot\usr\include", "-I$SDKInstallRoot\usr\include\Block");
2457+
LMDB_DIR = (Get-HostProjectCMakeModules LMDB);
24572458
}
24582459
}
24592460

@@ -2475,6 +2476,7 @@ function Build-SourceKitLSP($Arch) {
24752476
SwiftCrypto_DIR = (Get-HostProjectCMakeModules Crypto);
24762477
SwiftCollections_DIR = (Get-HostProjectCMakeModules Collections);
24772478
SwiftPM_DIR = (Get-HostProjectCMakeModules PackageManager);
2479+
LMDB_DIR = (Get-HostProjectCMakeModules LMDB);
24782480
IndexStoreDB_DIR = (Get-HostProjectCMakeModules IndexStoreDB);
24792481
}
24802482
}
@@ -2837,6 +2839,7 @@ if (-not $SkipBuild) {
28372839
Invoke-BuildStep Build-PackageManager $HostArch
28382840
Invoke-BuildStep Build-Markdown $HostArch
28392841
Invoke-BuildStep Build-Format $HostArch
2842+
Invoke-BuildStep Build-LMDB $HostArch
28402843
Invoke-BuildStep Build-IndexStoreDB $HostArch
28412844
Invoke-BuildStep Build-SourceKitLSP $HostArch
28422845
}

0 commit comments

Comments
 (0)