'nim i' should work again
This commit is contained in:
parent
47d755b418
commit
45accd613b
1 changed files with 3 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue