When compiling from stdin write binary to stdinfile

This commit is contained in:
def 2015-02-28 23:35:35 +01:00
commit c37e8035ea
3 changed files with 4 additions and 2 deletions

View file

@ -171,7 +171,7 @@ proc processModule(module: PSym, stream: PLLStream, rd: PRodReader) =
if stream == nil:
let filename = fileIdx.toFullPathConsiderDirty
if module.name.s == "-":
module.name.s = "stdinFile"
module.name.s = "stdinfile"
s = llStreamOpen(stdin)
else:
s = llStreamOpen(filename, fmRead)