Refactor how actions get executed to eliminate a lot of redundant signature calcualat...
[scons.git] / src / engine / SCons / Sig / __init__.py
index 196d06541d789633ff1df6eb82cdb7dbfc6e39e5..cf7a86f05be409828f2f98b1527d871da8db32a2 100644 (file)
@@ -44,6 +44,8 @@ except ImportError:
     import TimeStamp
     default_module = TimeStamp
 
+default_max_drift = 2*24*60*60
+
 #XXX Get rid of the global array so this becomes re-entrant.
 sig_files = []
 
@@ -237,7 +239,7 @@ class Calculator:
     for the build engine.
     """
 
-    def __init__(self, module=default_module, max_drift=2*24*60*60):
+    def __init__(self, module=default_module, max_drift=default_max_drift):
         """
         Initialize the calculator.
 
@@ -280,7 +282,7 @@ class Calculator:
         
         sigs = map(lambda n, c=self: n.calc_signature(c), children)
         if node.has_builder():
-            sigs.append(self.module.signature(node.builder_sig_adapter()))
+            sigs.append(self.module.signature(node.get_executor()))
 
         bsig = self.module.collect(filter(lambda x: not x is None, sigs))