From c37e8035ea7915c1ebe6ba8d5872673dff27ab2c Mon Sep 17 00:00:00 2001 From: def Date: Sat, 28 Feb 2015 23:35:35 +0100 Subject: When compiling from stdin write binary to stdinfile --- compiler/nim.nim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compiler/nim.nim') diff --git a/compiler/nim.nim b/compiler/nim.nim index 215f1986e..b8ba2c6da 100644 --- a/compiler/nim.nim +++ b/compiler/nim.nim @@ -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: -- cgit 1.4.1-2-gfad0