diff options
author | Dirk Baechle <dl9obn@darc.de> | 2013-12-19 20:27:00 (GMT) |
---|---|---|
committer | Dirk Baechle <dl9obn@darc.de> | 2013-12-19 20:27:00 (GMT) |
commit | 4bbec153e3cb22fccb8c67212af1894f245bd8f8 (patch) | |
tree | df9bc10f1461930597339c0a26d290d46e81c5dd /src/engine/SCons/Executor.py | |
parent | 49f23291e62a741a5f53a3e37f606588a2e0d2f0 (diff) | |
download | SCons-4bbec153e3cb22fccb8c67212af1894f245bd8f8.zip SCons-4bbec153e3cb22fccb8c67212af1894f245bd8f8.tar.gz SCons-4bbec153e3cb22fccb8c67212af1894f245bd8f8.tar.bz2 |
Added release_target_info() to File nodes, reduces memory consumption.
Diffstat (limited to 'src/engine/SCons/Executor.py')
-rw-r--r-- | src/engine/SCons/Executor.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/engine/SCons/Executor.py b/src/engine/SCons/Executor.py index 7875537..051d275 100644 --- a/src/engine/SCons/Executor.py +++ b/src/engine/SCons/Executor.py @@ -230,6 +230,8 @@ class Executor(object): self.action_list = action def get_action_list(self): + if self.action_list is None: + return [] return self.pre_actions + self.action_list + self.post_actions def get_all_targets(self): @@ -268,7 +270,8 @@ class Executor(object): """ result = SCons.Util.UniqueList([]) for target in self.get_all_targets(): - result.extend(target.prerequisites) + if target.prerequisites is not None: + result.extend(target.prerequisites) return result def get_action_side_effects(self): @@ -571,7 +574,7 @@ class Null(object): """A null Executor, with a null build Environment, that does nothing when the rest of the methods call it. - This might be able to disapper when we refactor things to + This might be able to disappear when we refactor things to disassociate Builders from Nodes entirely, so we're not going to worry about unit tests for this--at least for now. """ @@ -626,7 +629,6 @@ class Null(object): self._morph() self.set_action_list(action) - # Local Variables: # tab-width:4 # indent-tabs-mode:nil |