diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2018-08-30 04:52:32 -0700 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-08-30 13:52:32 +0200 |
commit | ed0cb7b85d8d48bcebb63a5e90a45a4e29bcb673 (patch) | |
tree | a89177259a1fb42477adbafa09c1790c5fe50535 /compiler/commands.nim | |
parent | 01211ced1d5c3252c88e61bbbb6bb78dcc5575f0 (diff) | |
download | Nim-ed0cb7b85d8d48bcebb63a5e90a45a4e29bcb673.tar.gz |
make config.nims behave like nim.cfg in terms of where these scripts are searched / run (#8682)
* run project config.nims if exists, then inputfile.nims if exists * ~/.config/nim/config.nims can now be used * also check in getSystemConfigPath for config.nims * refactor handleCmdLine for nim and nimsuggest
Diffstat (limited to 'compiler/commands.nim')
-rw-r--r-- | compiler/commands.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index 8165fa5d4..b47ccf610 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -651,7 +651,7 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo; else: localError(conf, info, "invalid option for --symbolFiles: " & arg) of "skipcfg": expectNoArg(conf, switch, arg, pass, info) - incl(conf.globalOptions, optSkipConfigFile) + incl(conf.globalOptions, optSkipSystemConfigFile) of "skipprojcfg": expectNoArg(conf, switch, arg, pass, info) incl(conf.globalOptions, optSkipProjConfigFile) |