From 8a5cb55f571011ef34b23c34321d27d0c61991ed Mon Sep 17 00:00:00 2001 From: araq Date: Wed, 12 Nov 2025 11:02:43 +0100 Subject: [PATCH] omg --- compiler/ast.nim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/compiler/ast.nim b/compiler/ast.nim index 406ddade18..c165a7cfb7 100644 --- a/compiler/ast.nim +++ b/compiler/ast.nim @@ -32,10 +32,12 @@ when not defined(nimKochBootstrap): template typ*(n: PNode): PType = n.typField -var program {.threadvar.}: DecodeContext +when not defined(nimKochBootstrap): + var program {.threadvar.}: DecodeContext proc setupProgram*(config: ConfigRef; cache: IdentCache) = - program = createDecodeContext(config, cache) + when not defined(nimKochBootstrap): + program = createDecodeContext(config, cache) template loadSym(s: PSym) = ## Loads a symbol from NIF file if it's in Partial state.