summary refs log tree commit diff stats
path: root/compiler/commands.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-07-11 21:36:23 +0200
committerGitHub <noreply@github.com>2019-07-11 21:36:23 +0200
commit3d88d06b32d1337fda45d419e9cd2ad845b74d5d (patch)
tree195ec50d46fe2cd4403e46286adb7829737bdbf1 /compiler/commands.nim
parentb8be1ccb855f8bde82ed1721e4231119ffa48e9f (diff)
downloadNim-3d88d06b32d1337fda45d419e9cd2ad845b74d5d.tar.gz
better run [feature] (#11709)
* track the checksums of all involved Nim files for smarter 'nim c -r' recompiles
* don't recompile unless necessary for 'nim c -r' [feature]
* [feature] koch boot uses a two step process in order to free the RAM before the GCC/Clang invocations
* fixes a serious regression
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 4e445a957..d0f7cc7eb 100644
--- a/compiler/commands.nim
+++ b/compiler/commands.nim
@@ -784,7 +784,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(config, AbsoluteFile"command line", 1, 1)
+template gCmdLineInfo*(): untyped = newLineInfo(commandLineIdx, 1, 1)
 
 proc processCommand*(switch: string, pass: TCmdLinePass; config: ConfigRef) =
   var cmd, arg: string