@@ -529,7 +529,7 @@ function Invoke-BuildStep([string] $Name) {
529
529
& $Name @Args
530
530
531
531
if ($Summary ) {
532
- Add-TimingData $BuildStepArch $BuildStepPlatform ( $Name -replace " Build- " , " " ) $Stopwatch.Elapsed
532
+ Add-TimingData $BuildStepArch $BuildStepPlatform $Name $Stopwatch.Elapsed
533
533
}
534
534
if ($Name.Replace (" Build-" , " " ) -eq $BuildTo ) {
535
535
exit 0
@@ -1454,7 +1454,8 @@ enum SPMBuildAction {
1454
1454
1455
1455
function Build-SPMProject {
1456
1456
[CmdletBinding (PositionalBinding = $false )]
1457
- param (
1457
+ param
1458
+ (
1458
1459
[SPMBuildAction ] $Action ,
1459
1460
[string ] $Src ,
1460
1461
[string ] $Bin ,
@@ -1525,10 +1526,6 @@ function Build-SPMProject {
1525
1526
Write-Host - ForegroundColor Cyan " [$ ( [DateTime ]::Now.ToString(" yyyy-MM-dd HH:mm:ss" )) ] Finished building '$Src ' to '$Bin ' in $ ( $Stopwatch.Elapsed ) "
1526
1527
Write-Host " "
1527
1528
}
1528
-
1529
- if ($Summary ) {
1530
- Add-TimingData $BuildArch.LLVMName " Windows" $Src.Replace ($SourceCache , ' ' ) $Stopwatch.Elapsed
1531
- }
1532
1529
}
1533
1530
1534
1531
function Build-WiXProject () {
@@ -3295,22 +3292,24 @@ if (-not $IsCrossCompiling) {
3295
3292
" -TestLLVM" = $Test -contains " llvm" ;
3296
3293
" -TestSwift" = $Test -contains " swift" ;
3297
3294
}
3295
+ # FIXME(compnerd) this involves fixing the specialised argument handling in
3296
+ # `Invoke-BuildStep` to deal with the additional boolean parameters.
3298
3297
Build-Compilers $HostArch @Tests
3299
3298
}
3300
3299
3301
- if ($Test -contains " dispatch" ) { Test-Dispatch }
3302
- if ($Test -contains " foundation" ) { Test-Foundation }
3303
- if ($Test -contains " xctest" ) { Test-XCTest }
3304
- if ($Test -contains " testing" ) { Test-Testing }
3305
- if ($Test -contains " llbuild" ) { Test-LLBuild }
3306
- if ($Test -contains " swiftpm" ) { Test-PackageManager }
3307
- if ($Test -contains " swift-format" ) { Test-Format }
3308
- if ($Test -contains " sourcekit-lsp" ) { Test-SourceKitLSP }
3300
+ if ($Test -contains " dispatch" ) { Invoke-BuildStep Test-Dispatch }
3301
+ if ($Test -contains " foundation" ) { Invoke-BuildStep Test-Foundation }
3302
+ if ($Test -contains " xctest" ) { Invoke-BuildStep Test-XCTest }
3303
+ if ($Test -contains " testing" ) { Invoke-BuildStep Test-Testing }
3304
+ if ($Test -contains " llbuild" ) { Invoke-BuildStep Test-LLBuild }
3305
+ if ($Test -contains " swiftpm" ) { Invoke-BuildStep Test-PackageManager }
3306
+ if ($Test -contains " swift-format" ) { Invoke-BuildStep Test-Format }
3307
+ if ($Test -contains " sourcekit-lsp" ) { Invoke-BuildStep Test-SourceKitLSP }
3309
3308
3310
3309
if ($Test -contains " swift" ) {
3311
3310
foreach ($Arch in $AndroidSDKArchs ) {
3312
3311
try {
3313
- Test-Runtime Android $Arch
3312
+ Invoke-BuildStep Test-Runtime Android $Arch
3314
3313
} catch {}
3315
3314
}
3316
3315
}
0 commit comments