From: stevenknight Date: Thu, 24 Mar 2005 04:34:57 +0000 (+0000) Subject: Fix linkloc.py to work with newer env.subst() conventions. (Charles Crain) X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=483d7ccc6c07bcd48fcc851864ca3d17d18e0935;p=scons.git Fix linkloc.py to work with newer env.subst() conventions. (Charles Crain) git-svn-id: http://scons.tigris.org/svn/scons/trunk@1265 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/src/CHANGES.txt b/src/CHANGES.txt index 6f0691ff..f6778193 100644 --- a/src/CHANGES.txt +++ b/src/CHANGES.txt @@ -46,6 +46,11 @@ RELEASE 0.97 - XXX - Add a set of canned PathOption validators: PathExists (the default), PathIsFile, PathIsDir and PathIsDirCreate. + Charles Crain + + - Fix the PharLap linkloc.py module to use target+source arguments + when calling env.subst(). + From Matthew Doar: - Add support for .lex and .yacc file suffixes for Lex and Yacc files. diff --git a/src/engine/SCons/Tool/linkloc.py b/src/engine/SCons/Tool/linkloc.py index 867b788b..38538554 100644 --- a/src/engine/SCons/Tool/linkloc.py +++ b/src/engine/SCons/Tool/linkloc.py @@ -69,7 +69,7 @@ class LinklocGenerator: if for_signature: # Expand the contents of any linker command files recursively subs = 1 - strsub = env.subst(self.cmdline) + strsub = env.subst(self.cmdline, target=target, source=source) while subs: strsub, subs = _re_linker_command.subn(repl_linker_command, strsub) return strsub