@@ -445,9 +445,9 @@ enum HostComponent {
445
445
PackageManager
446
446
Markdown
447
447
Format
448
+ LMDB
448
449
IndexStoreDB
449
450
SourceKitLSP
450
- LMDB
451
451
SymbolKit
452
452
DocC
453
453
SwiftInspect
@@ -2471,6 +2471,15 @@ function Test-Format {
2471
2471
}
2472
2472
}
2473
2473
2474
+ function Build-LMDB ($Arch ) {
2475
+ Build-CMakeProject `
2476
+ - Src $SourceCache \swift- lmdb `
2477
+ - Bin (Get-HostProjectBinaryCache LMDB) `
2478
+ - Arch $Arch `
2479
+ - UseMSVCCompilers C `
2480
+ - BuildTargets default
2481
+ }
2482
+
2474
2483
function Build-IndexStoreDB ($Arch ) {
2475
2484
$SDKInstallRoot = (Get-HostSwiftSDK );
2476
2485
@@ -2486,6 +2495,7 @@ function Build-IndexStoreDB($Arch) {
2486
2495
BUILD_SHARED_LIBS = " NO" ;
2487
2496
CMAKE_C_FLAGS = @ (" -I$SDKInstallRoot \usr\include" , " -I$SDKInstallRoot \usr\include\Block" );
2488
2497
CMAKE_CXX_FLAGS = @ (" -I$SDKInstallRoot \usr\include" , " -I$SDKInstallRoot \usr\include\Block" );
2498
+ LMDB_DIR = (Get-HostProjectCMakeModules LMDB);
2489
2499
}
2490
2500
}
2491
2501
@@ -2507,19 +2517,23 @@ function Build-SourceKitLSP($Arch) {
2507
2517
SwiftCrypto_DIR = (Get-HostProjectCMakeModules Crypto);
2508
2518
SwiftCollections_DIR = (Get-HostProjectCMakeModules Collections);
2509
2519
SwiftPM_DIR = (Get-HostProjectCMakeModules PackageManager);
2520
+ LMDB_DIR = (Get-HostProjectCMakeModules LMDB);
2510
2521
IndexStoreDB_DIR = (Get-HostProjectCMakeModules IndexStoreDB);
2511
2522
}
2512
2523
}
2513
2524
2514
2525
function Test-SourceKitLSP {
2515
2526
$SwiftPMArguments = @ (
2527
+ # dispatch
2528
+ " -Xcc" , " -I$SourceCache \swift-corelibs-libdispatch" ,
2529
+ " -Xcc" , " -I$SourceCache \swift-corelibs-libdispatch\src\BlocksRuntime" ,
2516
2530
# swift-syntax
2517
2531
" -Xswiftc" , " -I$ ( Get-HostProjectBinaryCache Compilers) \lib\swift\host" ,
2518
2532
" -Xswiftc" , " -L$ ( Get-HostProjectBinaryCache Compilers) \lib\swift\host" ,
2519
2533
# swift-cmark
2520
- " -Xswiftc" , " -I$ ( $ SourceCache) \cmark\src\include" ,
2521
- " -Xswiftc" , " -I$ ( $ SourceCache) \cmark\extensions\include" ,
2522
- " -Xlinker" , " -I$ ( $ SourceCache) \cmark\extensions\include" ,
2534
+ " -Xswiftc" , " -I$SourceCache \cmark\src\include" ,
2535
+ " -Xswiftc" , " -I$SourceCache \cmark\extensions\include" ,
2536
+ " -Xlinker" , " -I$SourceCache \cmark\extensions\include" ,
2523
2537
" -Xlinker" , " $ ( Get-CMarkBinaryCache $HostArch ) \src\cmark-gfm.lib" ,
2524
2538
" -Xlinker" , " $ ( Get-CMarkBinaryCache $HostArch ) \extensions\cmark-gfm-extensions.lib" ,
2525
2539
# swift-system
@@ -2560,6 +2574,8 @@ function Test-SourceKitLSP {
2560
2574
" -Xlinker" , " $ ( Get-HostProjectBinaryCache IndexStoreDB) \lib\Index\Index.lib" ,
2561
2575
" -Xlinker" , " $ ( Get-HostProjectBinaryCache IndexStoreDB) \lib\LLVMSupport\LLVMSupport.lib" ,
2562
2576
" -Xlinker" , " $ ( Get-HostProjectBinaryCache IndexStoreDB) \lib\Support\Support.lib" ,
2577
+ # LMDB
2578
+ " -Xlinker" , " $ ( Get-HostProjectBinaryCache LMDB) \lib\CLMDB.lib" ,
2563
2579
# sourcekit-lsp
2564
2580
" -Xswiftc" , " -I$ ( $SourceCache ) \sourcekit-lsp\Sources\CAtomics\include" ,
2565
2581
" -Xswiftc" , " -I$ ( $SourceCache ) \sourcekit-lsp\Sources\CSourcekitd\include" ,
@@ -2870,6 +2886,7 @@ if (-not $SkipBuild) {
2870
2886
Invoke-BuildStep Build-PackageManager $HostArch
2871
2887
Invoke-BuildStep Build-Markdown $HostArch
2872
2888
Invoke-BuildStep Build-Format $HostArch
2889
+ Invoke-BuildStep Build-LMDB $HostArch
2873
2890
Invoke-BuildStep Build-IndexStoreDB $HostArch
2874
2891
Invoke-BuildStep Build-SourceKitLSP $HostArch
2875
2892
Invoke-BuildStep Build-Inspect $HostArch
0 commit comments