diff options
author | Neelesh Chandola <neelesh.chandola@outlook.com> | 2019-01-01 18:20:48 +0530 |
---|---|---|
committer | Miran <narimiran@disroot.org> | 2019-01-01 13:50:48 +0100 |
commit | 9faad7591e37fa074544206d1de17e59f56bd576 (patch) | |
tree | 5ab5e233cc4cd822f67c748eb025a4aa953dfb37 /compiler/commands.nim | |
parent | e7fa8f3443ebe03d74fb20b7f4d0096756211463 (diff) | |
download | Nim-9faad7591e37fa074544206d1de17e59f56bd576.tar.gz |
Deprecate gc v2 (#10151)
* Deprecate gc v2 * warnDeprecated now has custom messages
Diffstat (limited to 'compiler/commands.nim')
-rw-r--r-- | compiler/commands.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index 5893791cc..8b73884e8 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -224,7 +224,7 @@ proc testCompileOptionArg*(conf: ConfigRef; switch, arg: string, info: TLineInfo case arg.normalize of "boehm": result = conf.selectedGC == gcBoehm of "refc": result = conf.selectedGC == gcRefc - of "v2": result = conf.selectedGC == gcV2 + of "v2": result = false of "markandsweep": result = conf.selectedGC == gcMarkAndSweep of "generational": result = false of "destructors": result = conf.selectedGC == gcDestructors @@ -442,7 +442,7 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo; of "refc": conf.selectedGC = gcRefc of "v2": - conf.selectedGC = gcV2 + message(conf, info, warnDeprecated, "--gc:v2 is deprecated; using default gc") of "markandsweep": conf.selectedGC = gcMarkAndSweep defineSymbol(conf.symbols, "gcmarkandsweep") |