summary refs log tree commit diff stats
path: root/compiler/commands.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-05-13 09:07:11 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-05-13 09:07:11 +0200
commitdc4aa47c29bbcc7453244a11bcdb09e2eb62f1f5 (patch)
tree232df5d0f24b1358754fce7cd948b22b188a2b27 /compiler/commands.nim
parent342e50e26c7023a8ac6829b02d27c3810cb45d05 (diff)
downloadNim-dc4aa47c29bbcc7453244a11bcdb09e2eb62f1f5.tar.gz
bootstrapping works
Diffstat (limited to 'compiler/commands.nim')
-rw-r--r--compiler/commands.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim
index ba6bbab7d..328dc2f02 100644
--- a/compiler/commands.nim
+++ b/compiler/commands.nim
@@ -727,7 +727,7 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
     if strutils.find(switch, '.') >= 0: options.setConfigVar(conf, switch, arg)
     else: invalidCmdLineOption(conf, pass, switch, info)
 
-template gCmdLineInfo*(): untyped = newLineInfo(FileIndex(0), 1, 1)
+template gCmdLineInfo*(): untyped = newLineInfo(config, "command line", 1, 1)
 
 proc processCommand*(switch: string, pass: TCmdLinePass; config: ConfigRef) =
   var cmd, arg: string