diff --git a/compiler-rt/lib/fuzzer/FuzzerIO.cpp b/compiler-rt/lib/fuzzer/FuzzerIO.cpp --- a/compiler-rt/lib/fuzzer/FuzzerIO.cpp +++ b/compiler-rt/lib/fuzzer/FuzzerIO.cpp @@ -115,9 +115,14 @@ FILE *NewOutputFile = OpenFile(OutputFd, "w"); if (NewOutputFile) { OutputFile = NewOutputFile; +#if !LIBFUZZER_FUCHSIA +// Fuchsia does not support redirecting clang's reports to a file descriptor. +// These reports are also logged to the console and show up via fx syslog so +// it's not important if they are not in the fuzzer output. if (EF->__sanitizer_set_report_fd) EF->__sanitizer_set_report_fd( reinterpret_cast(GetHandleFromFd(OutputFd))); +#endif DiscardOutput(2); } }