summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2014-06-22 02:25:46 +0200
committerAndreas Rumpf <rumpf_a@web.de>2014-06-22 02:25:46 +0200
commit989bf5f796f1293c614b058ea1143d3579c51622 (patch)
treefcaf84b954641d8a382def485ddd001559fbc142
parentbe534279da5021aa5e6621430a52ee1573f1a01f (diff)
parent672e72487be702b15856ef51dda7f107f66cb462 (diff)
downloadNim-989bf5f796f1293c614b058ea1143d3579c51622.tar.gz
Merge pull request #1295 from rbehrends/fix-staticexec
Fixed gorge/staticExec to not strip newlines.
-rw-r--r--compiler/vmdeps.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/vmdeps.nim b/compiler/vmdeps.nim
index 0e01f5031..9a213d813 100644
--- a/compiler/vmdeps.nim
+++ b/compiler/vmdeps.nim
@@ -15,6 +15,8 @@ proc readOutput(p: PProcess): string =
   discard p.waitForExit
   while not output.atEnd:
     result.add(output.readLine)
+    result.add("\n")
+  result.setLen(result.len - "\n".len)
 
 proc opGorge*(cmd, input: string): string =
   var p = startCmd(cmd)