aboutsummaryrefslogtreecommitdiff
path: root/src/buildparser.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-09-20 18:56:49 +0000
committerMike Buland <eichlan@xagasoft.com>2006-09-20 18:56:49 +0000
commit85539c8c262c0c9e227c87fd1de02c53c163b7d8 (patch)
treeb6f96899ca745c157a6de93ad27013416976fc06 /src/buildparser.cpp
parent5a32418a040e967887aa6e01e41abc22932471db (diff)
downloadbuild-85539c8c262c0c9e227c87fd1de02c53c163b7d8.tar.gz
build-85539c8c262c0c9e227c87fd1de02c53c163b7d8.tar.bz2
build-85539c8c262c0c9e227c87fd1de02c53c163b7d8.tar.xz
build-85539c8c262c0c9e227c87fd1de02c53c163b7d8.zip
Changed the api for variable replacement contexts. There can now be multiple
levels of contextual inheritance, so now sub-targets automatically get their parent target's context variables, if they need them.
Diffstat (limited to 'src/buildparser.cpp')
-rw-r--r--src/buildparser.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/buildparser.cpp b/src/buildparser.cpp
index 0aa409f..f5b87c7 100644
--- a/src/buildparser.cpp
+++ b/src/buildparser.cpp
@@ -185,7 +185,9 @@ StringList BuildParser::buildToStringListDup( const BuildList &lSrc, const Strin
185 { 185 {
186 if( (*i).second ) 186 if( (*i).second )
187 { 187 {
188 Function *pTmp = (*i).second->duplicate( bld, sCont, mExtra ); 188 StringList l;
189 l.push_back( sCont );
190 Function *pTmp = (*i).second->duplicate( bld, &l, mExtra );
189 pTmp->execute( pPass, lIn, lOut ); 191 pTmp->execute( pPass, lIn, lOut );
190 delete pTmp; 192 delete pTmp;
191 } 193 }