Skip to content

Commit

Permalink
Merge pull request #17992 from tamasvajk/binlog/no-compilations
Browse files Browse the repository at this point in the history
C#: Consider the extraction of empty binlog files acceptable
  • Loading branch information
tamasvajk authored Nov 18, 2024
2 parents 0356cdc + da55732 commit b84b687
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,15 @@ static bool filter(CompilerCall compilerCall)
var allCompilationData = reader.ReadAllCompilationData(filter);
var allFailed = true;

logger.LogInfo($" Found {allCompilationData.Count} compilations in binary log");
if (allCompilationData.Count == 0)
{
logger.LogWarning(" No compilations found in binary log.");
return ExitCode.Ok;
}
else
{
logger.LogInfo($" Found {allCompilationData.Count} compilations in binary log");
}

foreach (var compilationData in allCompilationData)
{
Expand Down

0 comments on commit b84b687

Please sign in to comment.