summary refs log tree commit diff stats
path: root/compiler/semstmts.nim
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2011-12-09 04:40:59 +0200
committerZahary Karadjov <zahary@gmail.com>2011-12-09 04:40:59 +0200
commite4e74034c256f2b35c0b1650044e1598a0ee3697 (patch)
treecdcc0201d5bf043d0fb34be5437516ee1a6f83db /compiler/semstmts.nim
parente13a610ad42ef4d5d0222a2a942682d35e405dc7 (diff)
downloadNim-e4e74034c256f2b35c0b1650044e1598a0ee3697.tar.gz
path canonicalization and proper project relative paths
Diffstat (limited to 'compiler/semstmts.nim')
-rwxr-xr-xcompiler/semstmts.nim2
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)))