Thanks @Araq for the suggestion
This commit is contained in:
Flaviu Tamas
2015-03-04 21:21:10 -05:00
parent f4e0f64f86
commit 08680cfebd

View File

@@ -572,6 +572,9 @@ proc footprint(filename: string): TCrc32 =
getCompileCFileCmd(filename, true)
proc externalFileChanged(filename: string): bool =
if gCmd notin {cmdCompileToC, cmdCompileToCpp, cmdCompileToOC, cmdCompileToLLVM}:
return false
var crcFile = toGeneratedFile(filename.withPackageName, "crc")
var currentCrc = int(footprint(filename))
var f: File