diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2015-03-05 11:14:40 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2015-03-05 11:14:40 +0100 |
commit | 70d0894ace2f93e459be0c2caf59748dec9b0ef2 (patch) | |
tree | 4fc211065e6d69b31a7b29b804e9e1143d94c614 | |
parent | d61f326f38865e9c4b18e1952bbacd5eec0e3473 (diff) | |
parent | 08680cfebdd8d65a0f27978ad8388cd252a42773 (diff) | |
download | Nim-70d0894ace2f93e459be0c2caf59748dec9b0ef2.tar.gz |
Merge pull request #2249 from flaviut/fix-nimcheck
Fix #2247
-rw-r--r-- | compiler/extccomp.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index 5f6033e57..8888632b9 100644 --- a/compiler/extccomp.nim +++ b/compiler/extccomp.nim @@ -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 |