diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2014-09-10 10:31:14 +0100 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@googlemail.com> | 2014-09-10 10:31:14 +0100 |
commit | dcc00b3960d67ec03414d02a8958335caaa5f22b (patch) | |
tree | 18c336547b09bfab1feb0117e7cde8777c0a5055 | |
parent | 43f78d2c4a3d8dccec5c9e8a156e95f00f307efd (diff) | |
parent | f9c46b04a61c2ea1362b33e69c6e211f2d225354 (diff) | |
download | Nim-dcc00b3960d67ec03414d02a8958335caaa5f22b.tar.gz |
Merge pull request #1524 from rbehrends/fix-staticexec2
Properly handle staticExec() generating large output.
-rw-r--r-- | compiler/vmdeps.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/vmdeps.nim b/compiler/vmdeps.nim index 9a213d813..fdd8276cc 100644 --- a/compiler/vmdeps.nim +++ b/compiler/vmdeps.nim @@ -12,11 +12,11 @@ import ast, types, msgs, osproc, streams, options proc readOutput(p: PProcess): string = result = "" var output = p.outputStream - discard p.waitForExit while not output.atEnd: result.add(output.readLine) result.add("\n") result.setLen(result.len - "\n".len) + discard p.waitForExit proc opGorge*(cmd, input: string): string = var p = startCmd(cmd) |