Use gProjectIsStdin instead

This commit is contained in:
def 2015-05-17 16:10:46 +02:00
commit 2613110015
3 changed files with 3 additions and 1 deletions

View file

@ -148,7 +148,7 @@ proc compileModule*(fileIdx: int32, flags: TSymFlags): PSym =
return
else:
result.id = getID()
if sfMainModule in flags and gProjectName == "-":
if sfMainModule in flags and gProjectIsStdin:
processModule(result, llStreamOpen(stdin), rd)
else:
processModule(result, nil, rd)