summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-12-16 18:01:59 +0100
committerAraq <rumpf_a@web.de>2018-12-16 18:01:59 +0100
commit6e5c2af203895da094171f3b7b81fbeaece1654a (patch)
tree2c3406b51ffa3340ec0a7f270dc01eda080c7a3d
parent20d9dd1ac64dc3c498f0a274cb717b5470993b59 (diff)
downloadNim-6e5c2af203895da094171f3b7b81fbeaece1654a.tar.gz
fixes #9991
-rw-r--r--compiler/passes.nim2
1 files changed, 1 insertions, 1 deletions
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