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

@ -62,7 +62,7 @@ proc commandCompileToC =
compileProject()
cgenWriteModules()
if gCmd != cmdRun:
extccomp.callCCompiler(changeFileExt(gProjectFull, ""))
extccomp.callCCompiler(if gProjectName == "-": "stdinfile" else: changeFileExt(gProjectFull, ""))
if isServing:
# caas will keep track only of the compilation commands