diff options
Diffstat (limited to 'compiler/gorgeimpl.nim')
-rw-r--r-- | compiler/gorgeimpl.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/gorgeimpl.nim b/compiler/gorgeimpl.nim index 44ad46136..44636f382 100644 --- a/compiler/gorgeimpl.nim +++ b/compiler/gorgeimpl.nim @@ -10,7 +10,7 @@ ## Module that implements ``gorge`` for the compiler. import msgs, std / sha1, os, osproc, streams, strutils, options, - lineinfos + lineinfos, pathutils proc readOutput(p: Process): (string, int) = result[0] = "" @@ -26,7 +26,7 @@ proc opGorge*(cmd, input, cache: string, info: TLineInfo; conf: ConfigRef): (str let workingDir = parentDir(toFullPath(conf, info)) if cache.len > 0:# and optForceFullMake notin gGlobalOptions: let h = secureHash(cmd & "\t" & input & "\t" & cache) - let filename = options.toGeneratedFile(conf, "gorge_" & $h, "txt") + let filename = toGeneratedFile(conf, AbsoluteFile("gorge_" & $h), "txt").string var f: File if open(f, filename): result = (f.readAll, 0) |