summary refs log tree commit diff stats
path: root/compiler/options.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/options.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/options.nim')
-rw-r--r--compiler/options.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/options.nim b/compiler/options.nim
index d07342fce..b3060a180 100644
--- a/compiler/options.nim
+++ b/compiler/options.nim
@@ -149,6 +149,7 @@ var
   gProjectName* = "" # holds a name like 'nimrod'
   gProjectPath* = "" # holds a path like /home/alice/projects/nimrod/compiler/
   gProjectFull* = "" # projectPath/projectName
+  gProjectIsStdin* = false # whether we're compiling from stdin
   gProjectMainIdx*: int32 # the canonical path id of the main module
   nimcacheDir* = ""
   command* = "" # the main command (e.g. cc, check, scan, etc)