diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-08-23 08:02:15 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-08-23 08:02:15 +0200 |
commit | 6cc8301e4fb819393c1245cea0fbfb89e69b90b4 (patch) | |
tree | 33e20e06841b107600dfa9bce551ef9d723be497 /libbuild2/prerequisite.cxx | |
parent | 604cef5bc09a2c4631eb3948dd788381dc5b4edb (diff) |
Meta/operations and counts
Diffstat (limited to 'libbuild2/prerequisite.cxx')
-rw-r--r-- | libbuild2/prerequisite.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libbuild2/prerequisite.cxx b/libbuild2/prerequisite.cxx index b73aa4e..0883b75 100644 --- a/libbuild2/prerequisite.cxx +++ b/libbuild2/prerequisite.cxx @@ -113,8 +113,9 @@ namespace build2 // Call the meta-operation override, if any (currently used by dist). // - return current_mif->include == nullptr - ? r - : current_mif->include (a, t, prerequisite_member {p, m}, r); + if (auto f = t.ctx.current_mif->include) + r = f (a, t, prerequisite_member {p, m}, r); + + return r; } } |