diff options
| author | Steven Knight <knight@baldmt.com> | 2005-01-21 12:00:30 (GMT) |
|---|---|---|
| committer | Steven Knight <knight@baldmt.com> | 2005-01-21 12:00:30 (GMT) |
| commit | 9925c571d1b4efcfba5838bf93971f98f34cc17d (patch) | |
| tree | 43dc31c3adcc426161d7c53c9a60cc9ec1d5ac35 /src/engine/SCons/Environment.py | |
| parent | 7f820e64f11a4f047685713c163ca5fee35e676c (diff) | |
| download | SCons-9925c571d1b4efcfba5838bf93971f98f34cc17d.zip SCons-9925c571d1b4efcfba5838bf93971f98f34cc17d.tar.gz SCons-9925c571d1b4efcfba5838bf93971f98f34cc17d.tar.bz2 | |
Regain lost performance improvements by using paths instead of targets for scanner calls and re-using Binder objects for identical paths.
Diffstat (limited to 'src/engine/SCons/Environment.py')
| -rw-r--r-- | src/engine/SCons/Environment.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/SCons/Environment.py b/src/engine/SCons/Environment.py index c2d2e92..fdd9b40 100644 --- a/src/engine/SCons/Environment.py +++ b/src/engine/SCons/Environment.py @@ -372,7 +372,7 @@ class SubstitutionEnvironment: lvars['__env__'] = self return SCons.Util.scons_subst_list(string, self, raw, target, source, gvars, lvars, conv) - def subst_path(self, path, target=None): + def subst_path(self, path, target=None, source=None): """Substitute a path list, turning EntryProxies into Nodes and leaving Nodes (and other objects) as-is.""" @@ -397,7 +397,7 @@ class SubstitutionEnvironment: r = [] for p in path: if SCons.Util.is_String(p): - p = self.subst(p, target=target, conv=s) + p = self.subst(p, target=target, source=source, conv=s) if SCons.Util.is_List(p): if len(p) == 1: p = p[0] |
