deprecate newruntime (#17245)

* deprecate newruntime
* tests
* Update compiler/commands.nim
This commit is contained in:
flywind 2021-03-05 02:33:16 +08:00 • committed by GitHub
commit e1cc3b83fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 17 additions and 15 deletions

View file

@ -891,6 +891,7 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
if conf != nil:
conf.cppDefine(arg)
of "newruntime":
warningDeprecated(conf, info, "newruntime is deprecated, use arc/orc instead!")
expectNoArg(conf, switch, arg, pass, info)
if pass in {passCmd2, passPP}:
doAssert(conf != nil)