fixes #9978
This commit is contained in:
parent
32c6b35d97
commit
675b6f0773
3 changed files with 10 additions and 1 deletions
|
|
@ -155,7 +155,7 @@ proc processModule*(graph: ModuleGraph; module: PSym, stream: PLLStream): bool {
|
||||||
while true:
|
while true:
|
||||||
openParsers(p, fileIdx, s, graph.cache, graph.config)
|
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
|
# XXX what about caching? no processing then? what if I change the
|
||||||
# modules to include between compilation runs? we'd need to track that
|
# modules to include between compilation runs? we'd need to track that
|
||||||
# in ROD files. I think we should enable this feature only
|
# in ROD files. I think we should enable this feature only
|
||||||
|
|
|
||||||
8
tests/modules/timport_in_config.nim
Normal file
8
tests/modules/timport_in_config.nim
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
discard """
|
||||||
|
output: '''hallo'''
|
||||||
|
joinable: false
|
||||||
|
"""
|
||||||
|
|
||||||
|
# bug #9978
|
||||||
|
|
||||||
|
echo "hi".replace("i", "allo")
|
||||||
1
tests/modules/timport_in_config.nim.cfg
Normal file
1
tests/modules/timport_in_config.nim.cfg
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
--import: "strutils"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue