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

@ -61,6 +61,8 @@ proc handleCmdLine() =
if gCmd == cmdRun:
tccgen.run(commands.arguments)
if optRun in gGlobalOptions:
if gProjectName == "-":
gProjectFull = "stdinfile"
if gCmd == cmdCompileToJS:
var ex: string
if options.outFile.len > 0: