diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-04-24 11:58:18 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-04-24 11:58:18 +0200 |
commit | b503ca03f697d7364efe0bc5cf367e9e8bd12418 (patch) | |
tree | 61e8473bd4e50c9522ddd8eeb18dd82890653560 /compiler/nim.nim | |
parent | 7df892db9dcfff24be8f0a3c0bff01643d649049 (diff) | |
download | Nim-b503ca03f697d7364efe0bc5cf367e9e8bd12418.tar.gz |
refactoring: move 'argument' global into config object
Diffstat (limited to 'compiler/nim.nim')
-rw-r--r-- | compiler/nim.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/nim.nim b/compiler/nim.nim index 3fa733303..280782330 100644 --- a/compiler/nim.nim +++ b/compiler/nim.nim @@ -80,7 +80,7 @@ proc handleCmdLine(cache: IdentCache; config: ConfigRef) = if msgs.gErrorCounter == 0: when hasTinyCBackend: if gCmd == cmdRun: - tccgen.run(commands.arguments) + tccgen.run(config.arguments) if optRun in gGlobalOptions: if gCmd == cmdCompileToJS: var ex: string @@ -89,7 +89,7 @@ proc handleCmdLine(cache: IdentCache; config: ConfigRef) = else: ex = quoteShell( completeCFilePath(changeFileExt(gProjectFull, "js").prependCurDir)) - execExternalProgram(findNodeJs() & " " & ex & ' ' & commands.arguments) + execExternalProgram(findNodeJs() & " " & ex & ' ' & config.arguments) else: var binPath: string if options.outFile.len > 0: @@ -99,7 +99,7 @@ proc handleCmdLine(cache: IdentCache; config: ConfigRef) = # Figure out ourselves a valid binary name. binPath = changeFileExt(gProjectFull, ExeExt).prependCurDir var ex = quoteShell(binPath) - execExternalProgram(ex & ' ' & commands.arguments) + execExternalProgram(ex & ' ' & config.arguments) when declared(GC_setMaxPause): GC_setMaxPause 2_000 |