From f489afa7e497b99bf07f8856f279f772f7b265bf Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Sat, 15 Aug 2026 07:45:58 +0200 Subject: [PATCH] deprecate hotCodeReloading (#26107) See https://github.com/nim-lang/RFCs/issues/573 - deprecating for visibility in 2.4, in case a maintainer wants to step up - else it can be binned for 2.6 --- compiler/commands.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/commands.nim b/compiler/commands.nim index 123e404141..597063a680 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -843,6 +843,7 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo; of "hotcodereloading": processOnOffSwitchG(conf, {optHotCodeReloading}, arg, pass, info) if conf.hcrOn: + warningDeprecated(conf, info, "hotCodeReloading is deprecated, see https://github.com/nim-lang/RFCs/issues/573 for further information") defineSymbol(conf.symbols, "hotcodereloading") defineSymbol(conf.symbols, "useNimRtl") # hardcoded linking with dynamic runtime for MSVC for smaller binaries