summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-09-18 09:56:13 +0200
committerAraq <rumpf_a@web.de>2014-09-18 09:56:13 +0200
commit45accd613bd523c0635ca2ffe946b27b531e40ab (patch)
treeb0de6c289c5256b57afde7ff4db7c33d7039f4bd
parent47d755b4188c6988c3dc16ff707912239d90d319 (diff)
downloadNim-45accd613bd523c0635ca2ffe946b27b531e40ab.tar.gz
'nim i' should work again
-rw-r--r--compiler/modules.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/modules.nim b/compiler/modules.nim
index dd8ccedb1..05b795473 100644
--- a/compiler/modules.nim
+++ b/compiler/modules.nim
@@ -190,10 +190,11 @@ proc wantMainModule* =
     fatal(gCmdLineInfo, errCommandExpectsFilename)
   gProjectMainIdx = addFileExt(gProjectFull, NimExt).fileInfoIdx
 
+passes.gIncludeFile = includeModule
+passes.gImportModule = importModule
+
 proc compileProject*(projectFileIdx = -1'i32) =
   wantMainModule()
-  passes.gIncludeFile = includeModule
-  passes.gImportModule = importModule
   let systemFileIdx = fileInfoIdx(options.libpath / "system.nim")
   let projectFile = if projectFileIdx < 0: gProjectMainIdx else: projectFileIdx
   if projectFile == systemFileIdx: