diff options
| author | Steven Knight <knight@baldmt.com> | 2005-02-14 03:22:34 (GMT) |
|---|---|---|
| committer | Steven Knight <knight@baldmt.com> | 2005-02-14 03:22:34 (GMT) |
| commit | 08d7c4cd103fb39b6010b980209a777ceea1ead2 (patch) | |
| tree | 1fea16d051dcdb1147ced94deefb11fd31b151c5 /src/engine/SCons/Environment.py | |
| parent | 35451af4f3052befef3b41b3a971b3a8025b0577 (diff) | |
| download | SCons-08d7c4cd103fb39b6010b980209a777ceea1ead2.zip SCons-08d7c4cd103fb39b6010b980209a777ceea1ead2.tar.gz SCons-08d7c4cd103fb39b6010b980209a777ceea1ead2.tar.bz2 | |
Don't read up entire directories to decide if an Alias is up-to-date.
Diffstat (limited to 'src/engine/SCons/Environment.py')
| -rw-r--r-- | src/engine/SCons/Environment.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/engine/SCons/Environment.py b/src/engine/SCons/Environment.py index 419e4e1..9470623 100644 --- a/src/engine/SCons/Environment.py +++ b/src/engine/SCons/Environment.py @@ -1202,8 +1202,14 @@ class Base(SubstitutionEnvironment): source files using the supplied action. Action may be any type that the Builder constructor will accept for an action.""" - bld = SCons.Builder.Builder(action = action, - source_factory = self.fs.Entry) + bkw = { + 'action' : action, + 'source_factory' : self.fs.Entry, + } + try: bkw['source_scanner'] = kw['source_scanner'] + except KeyError: pass + else: del kw['source_scanner'] + bld = apply(SCons.Builder.Builder, (), bkw) return apply(bld, (self, target, source), kw) def Depends(self, target, dependency): |
