summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2009-01-19 15:19:19 (GMT)
committerSteven Knight <knight@baldmt.com>2009-01-19 15:19:19 (GMT)
commit61bce65baca3eace96fdba1efd2e1ee9440f4410 (patch)
tree34bce87aa5174fc8870f43242f425cb5b56de0f9 /src
parent6d699199b32405f27c8e76b5164bdc57fcd69602 (diff)
downloadSCons-61bce65baca3eace96fdba1efd2e1ee9440f4410.zip
SCons-61bce65baca3eace96fdba1efd2e1ee9440f4410.tar.gz
SCons-61bce65baca3eace96fdba1efd2e1ee9440f4410.tar.bz2
Fix calculation of $UNCHANGED_SOURCES to include correctly sources
for which the target doesn't exist.
Diffstat (limited to 'src')
-rw-r--r--src/engine/SCons/Executor.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/SCons/Executor.py b/src/engine/SCons/Executor.py
index 7d331c1..9a4f7f0 100644
--- a/src/engine/SCons/Executor.py
+++ b/src/engine/SCons/Executor.py
@@ -160,12 +160,12 @@ class Executor:
us = []
ut = []
for b in self.batches:
- if b.targets[0].changed():
- cs.extend(map(rfile, b.sources))
- ct.extend(b.targets)
- else:
+ if b.targets[0].is_up_to_date():
us.extend(map(rfile, b.sources))
ut.extend(b.targets)
+ else:
+ cs.extend(map(rfile, b.sources))
+ ct.extend(b.targets)
self._changed_sources_list = SCons.Util.NodeList(cs)
self._changed_targets_list = SCons.Util.NodeList(ct)
self._unchanged_sources_list = SCons.Util.NodeList(us)