summary refs log tree commit diff stats
path: root/compiler/modules.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-02-20 01:15:43 +0100
committerAraq <rumpf_a@web.de>2018-02-20 01:15:43 +0100
commit2fcc1637465df3ccc04394ee4703330cc51ee493 (patch)
treefa1efc9eed654f6476ba25d35e91d04fb18f3ec6 /compiler/modules.nim
parent5fe0c386ea4d0ce288cc4ae3ed40ae603db991ce (diff)
downloadNim-2fcc1637465df3ccc04394ee4703330cc51ee493.tar.gz
symbol files: more progress
Diffstat (limited to 'compiler/modules.nim')
-rw-r--r--compiler/modules.nim16
1 files changed, 9 insertions, 7 deletions
diff --git a/compiler/modules.nim b/compiler/modules.nim
index ab384311e..ede10a0f4 100644
--- a/compiler/modules.nim
+++ b/compiler/modules.nim
@@ -169,13 +169,15 @@ proc compileModule*(graph: ModuleGraph; fileIdx: int32; cache: IdentCache, flags
     if sfMainModule in result.flags:
       gMainPackageId = result.owner.id
 
-    if gCmd in {cmdCompileToC, cmdCompileToCpp, cmdCheck, cmdIdeTools}:
-      rd = handleSymbolFile(result, cache)
-      if result.id < 0:
-        internalError("handleSymbolFile should have set the module's ID")
-        return
-    else:
-      result.id = getModuleId(toFullPath(fileIdx))
+    when false:
+      if gCmd in {cmdCompileToC, cmdCompileToCpp, cmdCheck, cmdIdeTools}:
+        rd = handleSymbolFile(result, cache)
+        if result.id < 0:
+          internalError("handleSymbolFile should have set the module's ID")
+          return
+      else:
+        discard
+    result.id = getModuleId(toFullPath(fileIdx))
     discard processModule(graph, result,
       if sfMainModule in flags and gProjectIsStdin: stdin.llStreamOpen else: nil,
       rd, cache)