mirror of
https://gitee.com/openharmony/third_party_benchmark
synced 2024-11-30 11:00:29 +00:00
Fix windows build in console_reporter.cc. Fixes #228
This commit is contained in:
parent
02230445e0
commit
7188824c33
@ -38,8 +38,8 @@ bool ConsoleReporter::ReportContext(const Context& context) {
|
||||
PrintBasicContext(&GetErrorStream(), context);
|
||||
|
||||
#ifdef BENCHMARK_OS_WINDOWS
|
||||
if (FLAGS_color_print && &Out != &GetOutputStream()) {
|
||||
GetErrorString() << "Color printing is only supported for stdout on windows."
|
||||
if (FLAGS_color_print && &std::cout != &GetOutputStream()) {
|
||||
GetErrorStream() << "Color printing is only supported for stdout on windows."
|
||||
" Disabling color printing\n";
|
||||
FLAGS_color_print = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user