summary refs log tree commit diff stats
path: root/compiler/rodread.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-05-18 20:53:41 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-05-18 20:53:41 +0200
commitfeef109e60fd33ff350cbcf82298a7cae83bbd72 (patch)
tree8ffd0028e2401765a6a7d6100d5731bd9f3f0425 /compiler/rodread.nim
parent3af5a5d9e3604a903505a04d2747c04986e6042f (diff)
downloadNim-feef109e60fd33ff350cbcf82298a7cae83bbd72.tar.gz
make tests green again
Diffstat (limited to 'compiler/rodread.nim')
-rw-r--r--compiler/rodread.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rodread.nim b/compiler/rodread.nim
index 3eeee1127..9c834a410 100644
--- a/compiler/rodread.nim
+++ b/compiler/rodread.nim
@@ -792,7 +792,8 @@ proc findSomeWhere(id: int) =
     if rd != nil:
       var d = iiTableGet(rd.index.tab, id)
       if d != InvalidKey:
-        echo "found id ", id, " in ", gMods[i].filename
+        when declared(echo):
+          echo "found id ", id, " in ", gMods[i].filename
 
 proc getReader(moduleId: int): PRodReader =
   # we can't index 'gMods' here as it's indexed by a *file index* which is not