summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorflywind <xzsflywind@gmail.com>2021-03-05 02:33:16 +0800
committerGitHub <noreply@github.com>2021-03-04 19:33:16 +0100
commite1cc3b83fba0bc66790959d3cd84d70464c31e4f (patch)
tree80eb07c8be4d7e5ab60033afc9b0579a4ebe8fec /compiler
parent2e3d324cc6d2bb923af6acaa2a5fd8da4ca9c286 (diff)
downloadNim-e1cc3b83fba0bc66790959d3cd84d70464c31e4f.tar.gz
deprecate newruntime (#17245)
* deprecate newruntime
* tests
* Update compiler/commands.nim
Diffstat (limited to 'compiler')
-rw-r--r--compiler/commands.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim
index 7ee2c0459..abe1970dc 100644
--- a/compiler/commands.nim
+++ b/compiler/commands.nim
@@ -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)