diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-12-18 09:29:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-18 09:29:15 +0100 |
commit | d7d17d5ab09395f36785112286f1dc28ff02a261 (patch) | |
tree | 20fcdfb696e02296621f13e6baa9eeb996d31629 /compiler | |
parent | dd5812546f8a3dd2e65fd65ee3c786614cebc5f1 (diff) | |
parent | 09b9a544187f9ab72da675fc80a5c815c0a6535c (diff) | |
download | Nim-d7d17d5ab09395f36785112286f1dc28ff02a261.tar.gz |
see what breaks with a global config.nims (#10016)
* see what breaks with a global config.nims * make tests green with a global config.nims file
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/commands.nim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index b090a09a5..5893791cc 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -590,10 +590,12 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo; processOnOffSwitchG(conf, {optGenIndex}, arg, pass, info) of "import": expectArg(conf, switch, arg, pass, info) - if pass in {passCmd2, passPP}: conf.implicitImports.add arg + if pass in {passCmd2, passPP}: + conf.implicitImports.add findModule(conf, arg, toFullPath(conf, info)).string of "include": expectArg(conf, switch, arg, pass, info) - if pass in {passCmd2, passPP}: conf.implicitIncludes.add arg + if pass in {passCmd2, passPP}: + conf.implicitIncludes.add findModule(conf, arg, toFullPath(conf, info)).string of "listcmd": expectNoArg(conf, switch, arg, pass, info) incl(conf.globalOptions, optListCmd) |