From 83f8b6a45fc041586819537ca86be2eb534f79b0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 16 Mar 2017 18:14:16 +0200 Subject: Implement create meta-operation --- build2/b.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'build2/b.cxx') diff --git a/build2/b.cxx b/build2/b.cxx index 6e5aef9..d2ad368 100644 --- a/build2/b.cxx +++ b/build2/b.cxx @@ -423,7 +423,8 @@ main (int argc, char* argv[]) // Can modify params, opspec, change meta-operation name. // if (auto f = meta_operation_table[m].process) - current_mname = &f (mparams, opspecs, lifted != nullptr, l); + current_mname = &f ( + var_ovs, mparams, opspecs, lifted != nullptr, l); } } } @@ -508,9 +509,9 @@ main (int argc, char* argv[]) { const string& v (tn.value); - // Handle a few common cases as special: empty name, '.', - // '..', as well as dir{foo/bar} (without trailing '/'). - // This code must be consistent with find_target_type(). + // Handle a few common cases as special: empty name, '.', '..', as + // well as dir{foo/bar} (without trailing '/'). This code must be + // consistent with find_target_type() and other places. // if (v.empty () || v == "." || v == ".." || tn.type == "dir") out_base = dir_path (v); -- cgit v1.1