File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -476,6 +476,11 @@ function Add-TimingData {
476
476
function Write-Summary {
477
477
Write-Host " Summary:" - ForegroundColor Cyan
478
478
479
+ if ($EnableCaching ) {
480
+ Write-Host " SCCache:" - ForegroundColor Green
481
+ & sccache.exe -- show-stats
482
+ }
483
+
479
484
$TotalTime = [TimeSpan ]::Zero
480
485
foreach ($Entry in $TimingData ) {
481
486
$TotalTime = $TotalTime.Add ($Entry ." Elapsed Time" )
@@ -3197,8 +3202,11 @@ if ($Clean) {
3197
3202
}
3198
3203
3199
3204
if (-not $SkipBuild ) {
3200
- if ($EnableCaching -And (-Not (Test-SCCacheAtLeast - Major 0 - Minor 7 - Patch 4 ))) {
3201
- throw " Minimum required sccache version is 0.7.4"
3205
+ if ($EnableCaching ) {
3206
+ if (-Not (Test-SCCacheAtLeast - Major 0 - Minor 7 - Patch 4 )) {
3207
+ throw " Minimum required sccache version is 0.7.4"
3208
+ }
3209
+ & sccache.exe -- zero- stats
3202
3210
}
3203
3211
3204
3212
Remove-Item - Force - Recurse ([IO.Path ]::Combine((Get-InstallDir $HostPlatform ), " Platforms" )) - ErrorAction Ignore
You can’t perform that action at this time.
0 commit comments