diff options
Diffstat (limited to 'src/engine/SCons/Action.py')
-rw-r--r-- | src/engine/SCons/Action.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/engine/SCons/Action.py b/src/engine/SCons/Action.py index 367174c..d2211b7 100644 --- a/src/engine/SCons/Action.py +++ b/src/engine/SCons/Action.py @@ -865,8 +865,11 @@ class FunctionAction(_ActionAction): except AttributeError: contents = self.funccontents - return contents + env.subst(string.join(map(lambda v: '${'+v+'}', - self.varlist))) + result = [contents] + for v in self.varlist: + result.append(env.subst('${'+v+'}')) + + return string.join(result, '') def get_implicit_deps(self, target, source, env): return [] |