diff options
author | Araq <rumpf_a@web.de> | 2011-10-22 22:49:51 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-10-22 22:49:51 +0200 |
commit | dce8d3d1ab4167c134748108ff66251fe5ca7d7c (patch) | |
tree | f571abacf75297d6774b1b2e4ca510609aeab3a2 /compiler/idgen.nim | |
parent | 235bd1c47402a62db097a0bae7d63224b46d02d8 (diff) | |
download | Nim-dce8d3d1ab4167c134748108ff66251fe5ca7d7c.tar.gz |
rod files: next trivial examples working
Diffstat (limited to 'compiler/idgen.nim')
-rw-r--r-- | compiler/idgen.nim | 5 |
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) |