File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -490,13 +490,26 @@ $WindowsSDKArchs = @($WindowsSDKs | ForEach-Object {
490
490
# Build functions
491
491
function Invoke-BuildStep ([string ] $Name ) {
492
492
if ($Summary ) {
493
+ # TODO: Replace hacky introspection of $Args with Platform object.
494
+ $BuildStepPlatform = " Windows"
495
+ $BuildStepArch = " (n/a)"
493
496
$Stopwatch = [Diagnostics.Stopwatch ]::StartNew()
497
+ foreach ($Arg in $Args ) {
498
+ switch ($Arg.GetType ().Name) {
499
+ " Hashtable" {
500
+ if ($Arg.ContainsKey (" LLVMName" )) { $BuildStepArch = $Arg [" LLVMName" ] }
501
+ }
502
+ " string" {
503
+ if ($Arg -eq " Windows" -or $Arg -eq " Android" ) { $BuildStepPlatform = $Arg }
504
+ }
505
+ }
506
+ }
494
507
}
495
508
496
509
& $Name @Args
497
510
498
511
if ($Summary ) {
499
- Add-TimingData $BuildArch .LLVMName " Windows " ($Name -replace " Build-" , " " ) $Stopwatch.Elapsed
512
+ Add-TimingData $BuildStepArch $BuildStepPlatform ($Name -replace " Build-" , " " ) $Stopwatch.Elapsed
500
513
}
501
514
if ($Name.Replace (" Build-" , " " ) -eq $BuildTo ) {
502
515
exit 0
You can’t perform that action at this time.
0 commit comments