diff options
author | Flaviu Tamas <tamasflaviu@gmail.com> | 2015-03-04 21:21:10 -0500 |
---|---|---|
committer | Flaviu Tamas <tamasflaviu@gmail.com> | 2015-03-04 21:21:10 -0500 |
commit | 08680cfebdd8d65a0f27978ad8388cd252a42773 (patch) | |
tree | f9860e49bc9833fdbba2d68b64377b9e41e143a0 /compiler/extccomp.nim | |
parent | f4e0f64f8648dc0dc56f91982b95ae3ff0466539 (diff) | |
download | Nim-08680cfebdd8d65a0f27978ad8388cd252a42773.tar.gz |
Fix #2247
Thanks @Araq for the suggestion
Diffstat (limited to 'compiler/extccomp.nim')
-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 |