From c51112c737e5db7919158d4945265b4d727baf70 Mon Sep 17 00:00:00 2001 From: araq Date: Thu, 18 Dec 2025 11:14:05 +0100 Subject: [PATCH] bugfix --- compiler/nifbackend.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/nifbackend.nim b/compiler/nifbackend.nim index 01c971c9a5..b061591bf8 100644 --- a/compiler/nifbackend.nim +++ b/compiler/nifbackend.nim @@ -42,6 +42,8 @@ proc loadModuleDependencies(g: ModuleGraph; mainFileIdx: FileIndex): seq[PSym] = let module = moduleFromNifFile(g, fileIdx, cachedModules, loadFullAst=isMainModule) if module != nil: result.add module + if isMainModule: + incl module.flagsImpl, sfMainModule # Add dependencies to stack (they come from cachedModules) for dep in cachedModules: if not visited.contains(int(dep)):