Browse Source

maybe i should actually read my shit rather than just hacking on a solution

ijon 3 years ago
parent
commit
d0635d03e1
1 changed files with 2 additions and 3 deletions
  1. 2 3
      inc/basefuncs.py

+ 2 - 3
inc/basefuncs.py

@@ -107,9 +107,8 @@ def toRecompile(sources, headers, objects):
 
         objectMtimes[o] = mtime
 
-    if newestHeader:
-        if not oldestObject or newestHeader >= oldestObject:
-            return {sources[i]: objects[i] for i in range(len(sources))}
+    if not oldestObject or (newestHeader and newestHeader >= oldestObject):
+        return {sources[i]: objects[i] for i in range(len(sources))}
 
 
     ret = {}