@@ -449,9 +449,9 @@ enum HostComponent {
449
449
PackageManager
450
450
Markdown
451
451
Format
452
+ LMDB
452
453
IndexStoreDB
453
454
SourceKitLSP
454
- LMDB
455
455
SymbolKit
456
456
DocC
457
457
}
@@ -2439,6 +2439,15 @@ function Test-Format {
2439
2439
}
2440
2440
}
2441
2441
2442
+ function Build-LMDB ($Arch ) {
2443
+ Build-CMakeProject `
2444
+ - Src $SourceCache \swift- lmdb `
2445
+ - Bin (Get-HostProjectBinaryCache LMDB) `
2446
+ - Arch $Arch `
2447
+ - UseMSVCCompilers C `
2448
+ - BuildTargets default
2449
+ }
2450
+
2442
2451
function Build-IndexStoreDB ($Arch ) {
2443
2452
$SDKInstallRoot = (Get-HostSwiftSDK );
2444
2453
@@ -2454,6 +2463,7 @@ function Build-IndexStoreDB($Arch) {
2454
2463
BUILD_SHARED_LIBS = " NO" ;
2455
2464
CMAKE_C_FLAGS = @ (" -I$SDKInstallRoot \usr\include" , " -I$SDKInstallRoot \usr\include\Block" );
2456
2465
CMAKE_CXX_FLAGS = @ (" -I$SDKInstallRoot \usr\include" , " -I$SDKInstallRoot \usr\include\Block" );
2466
+ LMDB_DIR = (Get-HostProjectCMakeModules LMDB);
2457
2467
}
2458
2468
}
2459
2469
@@ -2475,19 +2485,23 @@ function Build-SourceKitLSP($Arch) {
2475
2485
SwiftCrypto_DIR = (Get-HostProjectCMakeModules Crypto);
2476
2486
SwiftCollections_DIR = (Get-HostProjectCMakeModules Collections);
2477
2487
SwiftPM_DIR = (Get-HostProjectCMakeModules PackageManager);
2488
+ LMDB_DIR = (Get-HostProjectCMakeModules LMDB);
2478
2489
IndexStoreDB_DIR = (Get-HostProjectCMakeModules IndexStoreDB);
2479
2490
}
2480
2491
}
2481
2492
2482
2493
function Test-SourceKitLSP {
2483
2494
$SwiftPMArguments = @ (
2495
+ # dispatch
2496
+ " -Xcc" , " -I$SourceCache \swift-corelibs-libdispatch" ,
2497
+ " -Xcc" , " -I$SourceCache \swift-corelibs-libdispatch\src\BlocksRuntime" ,
2484
2498
# swift-syntax
2485
2499
" -Xswiftc" , " -I$ ( Get-HostProjectBinaryCache Compilers) \lib\swift\host" ,
2486
2500
" -Xswiftc" , " -L$ ( Get-HostProjectBinaryCache Compilers) \lib\swift\host" ,
2487
2501
# swift-cmark
2488
- " -Xswiftc" , " -I$ ( $ SourceCache) \cmark\src\include" ,
2489
- " -Xswiftc" , " -I$ ( $ SourceCache) \cmark\extensions\include" ,
2490
- " -Xlinker" , " -I$ ( $ SourceCache) \cmark\extensions\include" ,
2502
+ " -Xswiftc" , " -I$SourceCache \cmark\src\include" ,
2503
+ " -Xswiftc" , " -I$SourceCache \cmark\extensions\include" ,
2504
+ " -Xlinker" , " -I$SourceCache \cmark\extensions\include" ,
2491
2505
" -Xlinker" , " $ ( Get-CMarkBinaryCache $HostArch ) \src\cmark-gfm.lib" ,
2492
2506
" -Xlinker" , " $ ( Get-CMarkBinaryCache $HostArch ) \extensions\cmark-gfm-extensions.lib" ,
2493
2507
# swift-system
@@ -2528,6 +2542,8 @@ function Test-SourceKitLSP {
2528
2542
" -Xlinker" , " $ ( Get-HostProjectBinaryCache IndexStoreDB) \lib\Index\Index.lib" ,
2529
2543
" -Xlinker" , " $ ( Get-HostProjectBinaryCache IndexStoreDB) \lib\LLVMSupport\LLVMSupport.lib" ,
2530
2544
" -Xlinker" , " $ ( Get-HostProjectBinaryCache IndexStoreDB) \lib\Support\Support.lib" ,
2545
+ # LMDB
2546
+ " -Xlinker" , " $ ( Get-HostProjectBinaryCache LMDB) \lib\CLMDB.lib" ,
2531
2547
# sourcekit-lsp
2532
2548
" -Xswiftc" , " -I$ ( $SourceCache ) \sourcekit-lsp\Sources\CAtomics\include" ,
2533
2549
" -Xswiftc" , " -I$ ( $SourceCache ) \sourcekit-lsp\Sources\CSourcekitd\include" ,
@@ -2837,6 +2853,7 @@ if (-not $SkipBuild) {
2837
2853
Invoke-BuildStep Build-PackageManager $HostArch
2838
2854
Invoke-BuildStep Build-Markdown $HostArch
2839
2855
Invoke-BuildStep Build-Format $HostArch
2856
+ Invoke-BuildStep Build-LMDB $HostArch
2840
2857
Invoke-BuildStep Build-IndexStoreDB $HostArch
2841
2858
Invoke-BuildStep Build-SourceKitLSP $HostArch
2842
2859
}
0 commit comments