summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorReimer Behrends <behrends@gmail.com>2014-06-22 02:05:17 +0200
committerReimer Behrends <behrends@gmail.com>2014-06-22 02:23:31 +0200
commit672e72487be702b15856ef51dda7f107f66cb462 (patch)
treefcaf84b954641d8a382def485ddd001559fbc142
parentbe534279da5021aa5e6621430a52ee1573f1a01f (diff)
downloadNim-672e72487be702b15856ef51dda7f107f66cb462.tar.gz
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)