From 100c40f2ab7a2c62461108e2ad75a7dcd91dbe01 Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 21 Dec 2025 09:54:32 +0100 Subject: [PATCH] so close now... --- compiler/ast2nif.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/ast2nif.nim b/compiler/ast2nif.nim index c419a934d8..db3fce6683 100644 --- a/compiler/ast2nif.nim +++ b/compiler/ast2nif.nim @@ -1099,6 +1099,8 @@ proc loadSymFromCursor(c: var DecodeContext; s: PSym; n: var Cursor; thisModule: inc n var isKnownFile = false s.positionImpl = int c.infos.config.registerNifSuffix(thisModule, isKnownFile) + # do to the precompiled mechanism things end up as main modules which are not! + excl s.flagsImpl, sfMainModule else: loadField s.positionImpl