summary refs log tree commit diff stats
path: root/compiler/main.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/main.nim')
-rwxr-xr-xcompiler/main.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/main.nim b/compiler/main.nim
index 8a563e424..06d16ed08 100755
--- a/compiler/main.nim
+++ b/compiler/main.nim
@@ -324,7 +324,7 @@ proc InteractivePasses =
 var stdinModule: PSym
 proc makeStdinModule: PSym =
   if stdinModule == nil:
-    stdinModule = newModule(gCmdLineInfo.fileIndex)
+    stdinModule = newModule(fileInfoIdx"stdin")
     stdinModule.id = getID()
   result = stdinModule
 
@@ -333,7 +333,7 @@ proc CommandInteractive =
   InteractivePasses()
   compileSystemModule()
   if commandArgs.len > 0:
-    discard CompileModule(gProjectMainIdx, {})
+    discard CompileModule(fileInfoIdx(gProjectFull), {})
   else:
     var m = makeStdinModule()
     incl(m.flags, sfMainModule)