From 24831699a4fd352f164fef722acafa11ba6acde1 Mon Sep 17 00:00:00 2001 From: araq Date: Wed, 17 Dec 2025 11:50:50 +0100 Subject: [PATCH] another bugfix --- compiler/nifbackend.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/nifbackend.nim b/compiler/nifbackend.nim index 3d77afcb4c..01c971c9a5 100644 --- a/compiler/nifbackend.nim +++ b/compiler/nifbackend.nim @@ -85,7 +85,7 @@ proc generateCode*(g: ModuleGraph; mainFileIdx: FileIndex) = # Load system module first - it's always needed and contains essential hooks var cachedModules: seq[FileIndex] = @[] if g.config.m.systemFileIdx != InvalidFileIdx: - discard moduleFromNifFile(g, g.config.m.systemFileIdx, cachedModules) + g.systemModule = moduleFromNifFile(g, g.config.m.systemFileIdx, cachedModules) # Load all modules in dependency order using stack traversal # This must happen BEFORE any code generation so that hooks are loaded into loadedOps