Skip to content

Commit

Permalink
Make sure R2RDump write to console in case --out is not specified (do…
Browse files Browse the repository at this point in the history
  • Loading branch information
cshung authored Jan 27, 2020
1 parent fb41486 commit 89965be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/coreclr/src/tools/r2rdump/R2RDump.cs
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,10 @@ private int Run()
{
globalWriter = new StreamWriter(_options.Out.FullName);
}
else
{
globalWriter = Console.Out;
}

foreach (FileInfo filename in _options.In)
{
Expand All @@ -498,7 +502,7 @@ private int Run()
}
}

if (!_options.Diff && globalWriter != null)
if (!_options.Diff)
{
_writer = globalWriter;
}
Expand Down

0 comments on commit 89965be

Please sign in to comment.