From d298d5cb1379d719dd96d5374b388889467269ee Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 12 Feb 2024 05:52:10 +0200 Subject: Extend class target, prerequisite_target interfaces --- libbuild2/target.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libbuild2/target.cxx') diff --git a/libbuild2/target.cxx b/libbuild2/target.cxx index 2e25dd3..a70830e 100644 --- a/libbuild2/target.cxx +++ b/libbuild2/target.cxx @@ -233,14 +233,14 @@ namespace build2 } value& target:: - append (const variable& var) + append (const variable& var, const scope* bs) { // Note: see also prerequisite::append() if changing anything here. // Note that here we want the original value without any overrides // applied. // - auto l (lookup_original (var).first); + auto l (lookup_original (var, false, bs).first); if (l.defined () && l.belongs (*this)) // Existing var in this target. return vars.modify (l); // Ok since this is original. @@ -254,9 +254,9 @@ namespace build2 } value& target:: - append_locked (const variable& var) + append_locked (const variable& var, const scope* bs) { - auto l (lookup_original (var, false, nullptr, true /* locked */).first); + auto l (lookup_original (var, false, bs, true /* locked */).first); if (l.defined () && l.belongs (*this)) // Existing var in this target. return vars.modify (l); // Ok since this is original. -- cgit v1.1