diff options
Diffstat (limited to 'src/engine/SCons/Util.py')
-rw-r--r-- | src/engine/SCons/Util.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/engine/SCons/Util.py b/src/engine/SCons/Util.py index ec809b9..896abaf 100644 --- a/src/engine/SCons/Util.py +++ b/src/engine/SCons/Util.py @@ -493,7 +493,15 @@ def subst_dict(target, source): dict['TARGET'] = Target_or_Source(tnl) if source: - snl = NLWrapper(source, lambda x: x.rfile().get_subst_proxy()) + def get_src_subst_proxy(node): + try: + rfile = node.rfile + except AttributeError: + pass + else: + node = rfile() + return node.get_subst_proxy() + snl = NLWrapper(source, get_src_subst_proxy) dict['SOURCES'] = Targets_or_Sources(snl) dict['SOURCE'] = Target_or_Source(snl) |