summary refs log tree commit diff stats
path: root/compiler/extccomp.nim
diff options
context:
space:
mode:
authorFlaviu Tamas <tamasflaviu@gmail.com>2015-03-04 21:21:10 -0500
committerFlaviu Tamas <tamasflaviu@gmail.com>2015-03-04 21:21:10 -0500
commit08680cfebdd8d65a0f27978ad8388cd252a42773 (patch)
treef9860e49bc9833fdbba2d68b64377b9e41e143a0 /compiler/extccomp.nim
parentf4e0f64f8648dc0dc56f91982b95ae3ff0466539 (diff)
downloadNim-08680cfebdd8d65a0f27978ad8388cd252a42773.tar.gz
Fix #2247
Thanks @Araq for the suggestion
Diffstat (limited to 'compiler/extccomp.nim')
-rw-r--r--compiler/extccomp.nim3
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