@@ -1905,12 +1905,17 @@ function Test-Compilers([Hashtable] $Platform, [string] $Variant, [switch] $Test
1905
1905
Write-Host " Copying '$RuntimeBinaryCache \bin\swiftCore.dll' to '$ ( Get-ProjectBinaryCache $BuildPlatform Compilers) \bin'"
1906
1906
Copy-Item " $RuntimeBinaryCache \bin\swiftCore.dll" " $ ( Get-ProjectBinaryCache $BuildPlatform Compilers) \bin"
1907
1907
1908
+ $PythonRoot = " $ ( Get-PythonPath $BuildPlatform ) \tools"
1909
+ $env: Path = " $PythonRoot ;$env: Path "
1910
+
1908
1911
$TestingDefines += @ {
1909
1912
LLDB_INCLUDE_TESTS = " YES" ;
1910
1913
# Check for required Python modules in CMake
1911
1914
LLDB_ENFORCE_STRICT_TEST_REQUIREMENTS = " YES" ;
1912
1915
# No watchpoint support on windows: https://github.com/llvm/llvm-project/issues/24820
1913
1916
LLDB_TEST_USER_ARGS = " --skip-category=watchpoint" ;
1917
+ # Specify the correct PYTHONHOME to LLDB in tests. Can be removed when https://github.com/swiftlang/llvm-project/pull/10811 lands.
1918
+ LLDB_TEST_COMMON_ARGS = " --env PYTHONHOME=$PythonRoot " ;
1914
1919
# gtest sharding breaks llvm-lit's --xfail and LIT_XFAIL inputs: https://github.com/llvm/llvm-project/issues/102264
1915
1920
LLVM_LIT_ARGS = " -v --no-gtest-sharding --time-tests" ;
1916
1921
# LLDB Unit tests link against this library
@@ -3434,19 +3439,21 @@ if (-not $SkipBuild) {
3434
3439
Invoke-BuildStep Build-LLBuild $HostPlatform
3435
3440
Invoke-BuildStep Build-ArgumentParser $HostPlatform
3436
3441
Invoke-BuildStep Build-Driver $HostPlatform
3437
- Invoke-BuildStep Build-Crypto $HostPlatform
3438
- Invoke-BuildStep Build-Collections $HostPlatform
3439
- Invoke-BuildStep Build-ASN1 $HostPlatform
3440
- Invoke-BuildStep Build-Certificates $HostPlatform
3441
- Invoke-BuildStep Build-System $HostPlatform
3442
- Invoke-BuildStep Build-Build $HostPlatform
3443
- Invoke-BuildStep Build-PackageManager $HostPlatform
3444
- Invoke-BuildStep Build-Markdown $HostPlatform
3445
- Invoke-BuildStep Build-Format $HostPlatform
3446
- Invoke-BuildStep Build-LMDB $HostPlatform
3447
- Invoke-BuildStep Build-IndexStoreDB $HostPlatform
3448
- Invoke-BuildStep Build-SourceKitLSP $HostPlatform
3449
- Invoke-BuildStep Build-Inspect $HostPlatform
3442
+ if (-not (Compare-Object $Test @ (" lldb" ))) {
3443
+ Invoke-BuildStep Build-Crypto $HostPlatform
3444
+ Invoke-BuildStep Build-Collections $HostPlatform
3445
+ Invoke-BuildStep Build-ASN1 $HostPlatform
3446
+ Invoke-BuildStep Build-Certificates $HostPlatform
3447
+ Invoke-BuildStep Build-System $HostPlatform
3448
+ Invoke-BuildStep Build-Build $HostPlatform
3449
+ Invoke-BuildStep Build-PackageManager $HostPlatform
3450
+ Invoke-BuildStep Build-Markdown $HostPlatform
3451
+ Invoke-BuildStep Build-Format $HostPlatform
3452
+ Invoke-BuildStep Build-LMDB $HostPlatform
3453
+ Invoke-BuildStep Build-IndexStoreDB $HostPlatform
3454
+ Invoke-BuildStep Build-SourceKitLSP $HostPlatform
3455
+ Invoke-BuildStep Build-Inspect $HostPlatform
3456
+ }
3450
3457
}
3451
3458
3452
3459
Install-HostToolchain
@@ -3455,11 +3462,11 @@ if ($IncludeNoAsserts) {
3455
3462
Build-NoAssertsToolchain
3456
3463
}
3457
3464
3458
- if (-not $SkipBuild ) {
3465
+ if (-not $SkipBuild -and -not ( Compare-Object $Test @ ( " lldb " )) ) {
3459
3466
Invoke-BuildStep Build-mimalloc $HostPlatform
3460
3467
}
3461
3468
3462
- if (-not $SkipBuild -and -not $IsCrossCompiling ) {
3469
+ if (-not $SkipBuild -and -not $IsCrossCompiling -and -not ( Compare-Object $Test @ ( " lldb " )) ) {
3463
3470
Invoke-BuildStep Build-DocC $HostPlatform
3464
3471
}
3465
3472
0 commit comments