Index: build/toolchain/win/tool_wrapper.py |
diff --git a/build/toolchain/win/tool_wrapper.py b/build/toolchain/win/tool_wrapper.py |
index edc6256c64110f7f80663d690563a56ecdeea406..281298c65c2aabe4100ad320917c2cc7aaeecbc3 100644 |
--- a/build/toolchain/win/tool_wrapper.py |
+++ b/build/toolchain/win/tool_wrapper.py |
@@ -133,13 +133,12 @@ |
# non-Windows don't do that there. |
link = subprocess.Popen(args, shell=sys.platform == 'win32', env=env, |
stdout=subprocess.PIPE, stderr=subprocess.STDOUT) |
- # Read output one line at a time as it shows up to avoid OOM failures when |
- # GBs of output is produced. |
- for line in link.stdout: |
+ out, _ = link.communicate() |
+ for line in out.splitlines(): |
if (not line.startswith(' Creating library ') and |
not line.startswith('Generating code') and |
not line.startswith('Finished generating code')): |
- print line, |
+ print line |
return link.returncode |
def ExecLinkWithManifests(self, arch, embed_manifest, out, ldcmd, resname, |