avoid duplicate Timing messages (see also 5c4800f6b25a);
authorwenzelm
Sat, 11 Jul 2020 16:32:25 +0200
changeset 72246 5469bacf5573
parent 72245 6c6609fd898c
child 72247 17a41deb5950
avoid duplicate Timing messages (see also 5c4800f6b25a);
src/Pure/Tools/build.scala
--- a/src/Pure/Tools/build.scala	Sat Jul 11 16:25:17 2020 +0200
+++ b/src/Pure/Tools/build.scala	Sat Jul 11 16:32:25 2020 +0200
@@ -238,7 +238,6 @@
           }
 
           val stdout = new StringBuilder(1000)
-          val stderr = new StringBuilder(1000)
           val messages = new mutable.ListBuffer[XML.Elem]
           val command_timings = new mutable.ListBuffer[Properties.T]
           val theory_timings = new mutable.ListBuffer[Properties.T]
@@ -320,9 +319,6 @@
                 if (msg.is_stdout) {
                   stdout ++= Symbol.encode(XML.content(message))
                 }
-                else if (msg.is_stderr) {
-                  stderr ++= Symbol.encode(XML.content(message))
-                }
                 else if (Protocol.is_exported(message)) {
                   messages += message
                 }
@@ -368,8 +364,7 @@
             runtime_statistics.toList.map(Protocol.ML_Statistics_Marker.apply) :::
             task_statistics.toList.map(Protocol.Task_Statistics_Marker.apply)
 
-          val result =
-            process_result.output(process_output).error(Library.trim_line(stderr.toString))
+          val result = process_result.output(process_output)
 
           errors match {
             case Exn.Res(Nil) => result