diff options
author | Zahary Karadjov <zahary@gmail.com> | 2011-12-09 04:40:59 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2011-12-09 04:40:59 +0200 |
commit | e4e74034c256f2b35c0b1650044e1598a0ee3697 (patch) | |
tree | cdcc0201d5bf043d0fb34be5437516ee1a6f83db /compiler/semstmts.nim | |
parent | e13a610ad42ef4d5d0222a2a942682d35e405dc7 (diff) | |
download | Nim-e4e74034c256f2b35c0b1650044e1598a0ee3697.tar.gz |
path canonicalization and proper project relative paths
Diffstat (limited to 'compiler/semstmts.nim')
-rwxr-xr-x | compiler/semstmts.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index 2dbfa9497..3766841f1 100755 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -796,7 +796,7 @@ proc evalInclude(c: PContext, n: PNode): PNode = addSon(result, n) for i in countup(0, sonsLen(n) - 1): var f = getModuleFile(n.sons[i]) - var fileIndex = includeFilename(f) + var fileIndex = f.fileInfoIdx if ContainsOrIncl(c.includedFiles, fileIndex): GlobalError(n.info, errRecursiveDependencyX, f) addSon(result, semStmt(c, gIncludeFile(f))) |