From 6e5c2af203895da094171f3b7b81fbeaece1654a Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 16 Dec 2018 18:01:59 +0100 Subject: [PATCH] fixes #9991 --- compiler/passes.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/passes.nim b/compiler/passes.nim index d9a8fb1a7..9302bb2e4 100644 --- a/compiler/passes.nim +++ b/compiler/passes.nim @@ -155,7 +155,7 @@ proc processModule*(graph: ModuleGraph; module: PSym, stream: PLLStream): bool { while true: openParsers(p, fileIdx, s, graph.cache, graph.config) - if graph.config.mainPackageId == module.owner.id: + if module.owner == nil or module.owner.name.s != "stdlib": # graph.config.mainPackageId == module.owner.id: # XXX what about caching? no processing then? what if I change the # modules to include between compilation runs? we'd need to track that # in ROD files. I think we should enable this feature only