fixed a regression: compiling projects not residing in the current directory

This commit is contained in:
Zahary Karadjov 2013-01-20 21:53:08 +02:00
commit 8be307713e
4 changed files with 18 additions and 19 deletions

View file

@ -168,7 +168,7 @@ proc processModule(module: PSym, stream: PLLStream, rd: PRodReader) =
if rd == nil:
openPasses(a, module)
if stream == nil:
let filename = fileIdx.toFilename
let filename = fileIdx.toFullPath
s = LLStreamOpen(filename, fmRead)
if s == nil:
rawMessage(errCannotOpenFile, filename)