summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-12-14 17:13:41 +0100
committerAndreas Rumpf <rumpf_a@web.de>2018-12-14 17:15:03 +0100
commit675b6f07737a0f23b3b052552eeec525136c6960 (patch)
tree7a718ffa3d3c1fe9a7408afe426e422bc55a498a /compiler
parent32c6b35d97332e884648929672b0f163ee6febff (diff)
downloadNim-675b6f07737a0f23b3b052552eeec525136c6960.tar.gz
fixes #9978
Diffstat (limited to 'compiler')
-rw-r--r--compiler/passes.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/passes.nim b/compiler/passes.nim
index 9ccd2240a..6863576cd 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 sfSystemModule notin module.flags:
+      if 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