aboutsummaryrefslogtreecommitdiff
path: root/build2/b.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-03-16 18:14:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-17 09:37:20 +0200
commit83f8b6a45fc041586819537ca86be2eb534f79b0 (patch)
tree863800b9d5bd6a5d76dcdbe107edafca4cbf18fc /build2/b.cxx
parentf57ec74251b31cc532dc095801c1da17a7d8e0ac (diff)
Implement create meta-operation
Diffstat (limited to 'build2/b.cxx')
-rw-r--r--build2/b.cxx9
1 files changed, 5 insertions, 4 deletions
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);