diff options
author | Araq <rumpf_a@web.de> | 2014-09-18 09:56:13 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-09-18 09:56:13 +0200 |
commit | 45accd613bd523c0635ca2ffe946b27b531e40ab (patch) | |
tree | b0de6c289c5256b57afde7ff4db7c33d7039f4bd | |
parent | 47d755b4188c6988c3dc16ff707912239d90d319 (diff) | |
download | Nim-45accd613bd523c0635ca2ffe946b27b531e40ab.tar.gz |
'nim i' should work again
-rw-r--r-- | compiler/modules.nim | 5 |
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: |