summary refs log tree commit diff stats
path: root/nim/cgen.pas
diff options
context:
space:
mode:
Diffstat (limited to 'nim/cgen.pas')
-rw-r--r--[-rwxr-xr-x]nim/cgen.pas5
1 files changed, 2 insertions, 3 deletions
diff --git a/nim/cgen.pas b/nim/cgen.pas
index cb89cd910..9c0e122f2 100755..100644
--- a/nim/cgen.pas
+++ b/nim/cgen.pas
@@ -703,9 +703,8 @@ begin
   if optCFileCache in gGlobalOptions then begin
     objFile := toObjFile(cfilenoext);
     if writeRopeIfNotEqual(code, cfile) then exit;
-    if ExistsFile(objFile) then result := false
-//    and ropeEqualsFile(code, cfile)
-//    and FileNewer(objFile, cfile) then
+    if ExistsFile(objFile) and nos.FileNewer(objFile, cfile) then
+      result := false
   end
   else
     writeRope(code, cfile);