summary refs log tree commit diff stats
path: root/compiler/idgen.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-10-22 22:49:51 +0200
committerAraq <rumpf_a@web.de>2011-10-22 22:49:51 +0200
commitdce8d3d1ab4167c134748108ff66251fe5ca7d7c (patch)
treef571abacf75297d6774b1b2e4ca510609aeab3a2 /compiler/idgen.nim
parent235bd1c47402a62db097a0bae7d63224b46d02d8 (diff)
downloadNim-dce8d3d1ab4167c134748108ff66251fe5ca7d7c.tar.gz
rod files: next trivial examples working
Diffstat (limited to 'compiler/idgen.nim')
-rw-r--r--compiler/idgen.nim5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/idgen.nim b/compiler/idgen.nim
index 8bcfa37b7..b6d292574 100644
--- a/compiler/idgen.nim
+++ b/compiler/idgen.nim
@@ -41,7 +41,10 @@ proc IDsynchronizationPoint*(idRange: int) =
   gFrontEndId = (gFrontEndId div IdRange + 1) * IdRange + 1
 
 proc toGid(f: string): string =
-  result = options.completeGeneratedFilePath(f.addFileExt("gid"))
+  # we used to use ``f.addFileExt("gid")`` (aka ``$project.gid``), but this
+  # will cause strange bugs if multiple projects are in the same folder, so
+  # we simply use a project independent name:
+  result = options.completeGeneratedFilePath("nimrod.gid")
 
 proc saveMaxIds*(project: string) =
   var f = open(project.toGid, fmWrite)