summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorFlaviu Tamas <tamasflaviu@gmail.com>2015-06-29 16:52:47 -0400
committerFlaviu Tamas <tamasflaviu@gmail.com>2015-06-29 16:52:47 -0400
commit6aae246ef156ed7716b6df79365220afa6267fc0 (patch)
treedba77830abb677862d74d2d02122e0138e046d2e /compiler
parent615defb1a9f4739f365ff56321cec0b1a0d1fde2 (diff)
downloadNim-6aae246ef156ed7716b6df79365220afa6267fc0.tar.gz
Fix #3018
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.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/extccomp.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim
index 2c6e5294f..8d3260275 100644
--- a/compiler/extccomp.nim
+++ b/compiler/extccomp.nim
@@ -585,7 +585,7 @@ proc externalFileChanged(filename: string): bool =
   if gCmd notin {cmdCompileToC, cmdCompileToCpp, cmdCompileToOC, cmdCompileToLLVM}:
     return false
 
-  var crcFile = toGeneratedFile(filename.withPackageName, "crc")
+  var crcFile = toGeneratedFile(filename.withPackageName, "sha1")
   var currentCrc = footprint(filename)
   var f: File
   if open(f, crcFile, fmRead):