summary refs log tree commit diff stats
path: root/compiler/main.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2015-05-19 14:35:18 +0200
committerAndreas Rumpf <rumpf_a@web.de>2015-05-19 14:35:18 +0200
commitd7c0b269cb15c29969425d717e857f4c151fda52 (patch)
tree80aa3a395828da956056a14ec9e30bcc9c170612 /compiler/main.nim
parentc34d7e6467e617cd63cbf56e4af3ed066db85527 (diff)
parent2613110015d52ffdcb6ecfd6f7dbb3369016c252 (diff)
downloadNim-d7c0b269cb15c29969425d717e857f4c151fda52.tar.gz
Merge pull request #2734 from def-/stdin-fix
Clean up stdin file reading of compiler.
Diffstat (limited to 'compiler/main.nim')
-rw-r--r--compiler/main.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/main.nim b/compiler/main.nim
index 0c80c19b7..a01b6fe4f 100644
--- a/compiler/main.nim
+++ b/compiler/main.nim
@@ -63,7 +63,7 @@ proc commandCompileToC =
   compileProject()
   cgenWriteModules()
   if gCmd != cmdRun:
-    extccomp.callCCompiler(if gProjectName == "-": "stdinfile" else: changeFileExt(gProjectFull, ""))
+    extccomp.callCCompiler(changeFileExt(gProjectFull, ""))
 
   if isServing:
     # caas will keep track only of the compilation commands