File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1237,11 +1237,17 @@ function Build-SPMProject {
12371237 [string []] $AdditionalArguments
12381238 )
12391239
1240+ $ActionForOutput = switch ($Action ) {
1241+ Build { " Building" }
1242+ Test { " Testing" }
1243+ TestParallel { " Testing" }
1244+ }
1245+
12401246 if ($ToBatch ) {
12411247 Write-Output " "
1242- Write-Output " echo Building '$Src ' to '$Bin ' for arch '$ ( $Arch.LLVMName ) '..."
1248+ Write-Output " echo $ActionForOutput '$Src ' to '$Bin ' for arch '$ ( $Arch.LLVMName ) '..."
12431249 } else {
1244- Write-Host - ForegroundColor Cyan " [$ ( [DateTime ]::Now.ToString(" yyyy-MM-dd HH:mm:ss" )) ] Building '$Src ' to '$Bin ' for arch '$ ( $Arch.LLVMName ) '..."
1250+ Write-Host - ForegroundColor Cyan " [$ ( [DateTime ]::Now.ToString(" yyyy-MM-dd HH:mm:ss" )) ] $ActionForOutput '$Src ' to '$Bin ' for arch '$ ( $Arch.LLVMName ) '..."
12451251 }
12461252
12471253 $Stopwatch = [Diagnostics.Stopwatch ]::StartNew()
You can’t perform that action at this time.
0 commit comments