diff options
| author | Steven Knight <knight@baldmt.com> | 2007-05-18 05:40:31 (GMT) |
|---|---|---|
| committer | Steven Knight <knight@baldmt.com> | 2007-05-18 05:40:31 (GMT) |
| commit | 9732927a82f458a4a672874b5a9cee8ac025d4e8 (patch) | |
| tree | 4d532be0f91384214c930e1150d7e6becd44a92d /src/engine/SCons/Taskmaster.py | |
| parent | 84a531159a6e54d0fac324b29d664b93230a20db (diff) | |
| download | SCons-0.97.zip SCons-0.97.tar.gz SCons-0.97.tar.bz2 | |
Merged revisions 1884-1905 via svnmerge from0.97
http://scons.tigris.org/svn/scons/branches/core
........
r1891 | stevenknight | 2007-04-24 08:57:03 -0500 (Tue, 24 Apr 2007) | 1 line
0.96.D632 - Fix 0.96.96 reference count regression during parallel builds.
........
r1892 | stevenknight | 2007-04-24 12:51:05 -0500 (Tue, 24 Apr 2007) | 1 line
0.96.D633 - Fix documented default value(s) of $MSVS_USE_MFC_DIRS.
........
r1893 | stevenknight | 2007-04-24 16:12:14 -0500 (Tue, 24 Apr 2007) | 1 line
0.96.D634 - Make the DirEntryScanner tolerant of non-Dir nodes.
........
r1898 | stevenknight | 2007-05-09 15:07:15 -0500 (Wed, 09 May 2007) | 1 line
0.96.D635 - Portability fixes in test scripts.
........
r1899 | stevenknight | 2007-05-12 08:19:13 -0500 (Sat, 12 May 2007) | 1 line
0.96.D636 - Update documentation with rudimentary Tool module descriptions.
........
r1901 | stevenknight | 2007-05-17 14:32:14 -0500 (Thu, 17 May 2007) | 1 line
0.97.D001 - Initialize 0.97 for release.
........
Diffstat (limited to 'src/engine/SCons/Taskmaster.py')
| -rw-r--r-- | src/engine/SCons/Taskmaster.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/engine/SCons/Taskmaster.py b/src/engine/SCons/Taskmaster.py index 4de35f0..9a5011b 100644 --- a/src/engine/SCons/Taskmaster.py +++ b/src/engine/SCons/Taskmaster.py @@ -52,6 +52,7 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" import SCons.compat +import operator import string import sys import traceback @@ -577,8 +578,8 @@ class Taskmaster: # when they've finished building, our implicit dependency # list will get cleared and we'll re-scan the newly-built # file(s) for updated implicit dependencies. - map(lambda n, P=node: n.add_to_waiting_parents(P), not_started) - node.ref_count = len(set(not_started)) + added = map(lambda n, P=node: n.add_to_waiting_parents(P), not_started) + node.ref_count = node.ref_count + reduce(operator.add, added, 0) # Now we add these derived targets to the candidates # list so they can be examined and built. We have to @@ -612,8 +613,8 @@ class Taskmaster: # so that when they've finished building, our implicit # dependency list will get cleared and we'll re-scan the # newly-built file(s) for updated implicit dependencies. - map(lambda n, P=node: n.add_to_waiting_parents(P), not_built) - node.ref_count = len(set(not_built)) + added = map(lambda n, P=node: n.add_to_waiting_parents(P), not_built) + node.ref_count = node.ref_count + reduce(operator.add, added, 0) if S: S.not_built = S.not_built + 1 if T: |
