diff options
author | def <dennis@felsin9.de> | 2015-02-28 23:35:35 +0100 |
---|---|---|
committer | def <dennis@felsin9.de> | 2015-02-28 23:35:35 +0100 |
commit | c37e8035ea7915c1ebe6ba8d5872673dff27ab2c (patch) | |
tree | 2ef348681befd917987c42fa836f82f48e50d5b5 /compiler/nim.nim | |
parent | 6894ac7c0a91c56b41d2eee57551a697c48a1d63 (diff) | |
download | Nim-c37e8035ea7915c1ebe6ba8d5872673dff27ab2c.tar.gz |
When compiling from stdin write binary to stdinfile
Diffstat (limited to 'compiler/nim.nim')
-rw-r--r-- | compiler/nim.nim | 2 |
1 files changed, 2 insertions, 0 deletions
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: |