Looks like the problem is that the compiler expected the hash to be a certain
number of characters, but the file actually contained a (shorter) crc hash.
This commit is contained in:
Flaviu Tamas 2015-06-29 16:52:47 -04:00
commit 6aae246ef1

View file

@ -585,7 +585,7 @@ proc externalFileChanged(filename: string): bool =
if gCmd notin {cmdCompileToC, cmdCompileToCpp, cmdCompileToOC, cmdCompileToLLVM}: if gCmd notin {cmdCompileToC, cmdCompileToCpp, cmdCompileToOC, cmdCompileToLLVM}:
return false return false
var crcFile = toGeneratedFile(filename.withPackageName, "crc") var crcFile = toGeneratedFile(filename.withPackageName, "sha1")
var currentCrc = footprint(filename) var currentCrc = footprint(filename)
var f: File var f: File
if open(f, crcFile, fmRead): if open(f, crcFile, fmRead):