From 08680cfebdd8d65a0f27978ad8388cd252a42773 Mon Sep 17 00:00:00 2001 From: Flaviu Tamas Date: Wed, 4 Mar 2015 21:21:10 -0500 Subject: [PATCH] Fix #2247 Thanks @Araq for the suggestion --- compiler/extccomp.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index 5f6033e574..8888632b95 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