From 1cdcace7550f8b395ebab7d231f1a192330d4e8d 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 (cherry picked from commit f489afa7e497b99bf07f8856f279f772f7b265bf) --- compiler/commands.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/commands.nim b/compiler/commands.nim index b488458010..860f5f6fd9 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -784,6 +784,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