From b87c8d2eb4f0c7fb25cee10e8fdb2c8331343f8c Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 21 Dec 2009 23:52:22 +0000 Subject: Wow, that was aweful. There was a horrible problem with rule generated targets not getting the variables from the parent target. --- src/rule.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/rule.cpp') diff --git a/src/rule.cpp b/src/rule.cpp index 4c42346..7578707 100644 --- a/src/rule.cpp +++ b/src/rule.cpp @@ -73,9 +73,10 @@ void Rule::prepTarget( class Target *pTarget ) } } -Target *Rule::createTarget( class Runner &r, const Bu::FString &sInput ) +Target *Rule::createTarget( class Runner &r, const Bu::FString &sInput, + Target *pParent ) { - r.getContext().pushScope(); + r.getContext().pushScope( pParent->getVars() ); r.getContext().addVariable("INPUT", sInput ); Target *pTrg = new Target( false ); for( AstBranchList::iterator i = lOutput.begin(); i; i++ ) -- cgit v1.2.3