Collect live output from subprocesses
When launching a command, we now collect its output during execution and
print it as soon as it becomes available. This is necessary in order to
be able to see progress in long-running commands such as CMake or Ninja.
This requires some changes to the way in which we use the Subprocess
module, since we need to use the Popen constructor. This does not throw
an exception if the launched process returns an error - we now need to
manually check the return code and throw an exception ourselves.
Change-Id: I973d8bdec0bd77449672830476cb2eef11c6633a
1 file changed