diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-08-01 10:49:09 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-08-01 10:49:09 +0200 |
commit | a2cad68fe340a66ad54b93f88e39f97898fc462e (patch) | |
tree | be9033f82e650fe574d0149383121d700568247b /build2/algorithm.ixx | |
parent | a84ff43b183181e0a12c6d5e31c1f366d39ce2fe (diff) |
Reimplement pkg-config generation with more conservative approach for now
Diffstat (limited to 'build2/algorithm.ixx')
-rw-r--r-- | build2/algorithm.ixx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/build2/algorithm.ixx b/build2/algorithm.ixx index 5680288..03b4604 100644 --- a/build2/algorithm.ixx +++ b/build2/algorithm.ixx @@ -274,15 +274,14 @@ namespace build2 l.offset = target::offset_applied; } - inline pair<recipe, action> + inline recipe match_delegate (action a, target& t, const rule& r, bool fail) { assert (phase == run_phase::match); auto mr (match_impl (a, t, &r, fail)); - return make_pair (mr.first != nullptr - ? apply_impl (t, *mr.first, mr.second) - : empty_recipe, - mr.second); + return mr.first != nullptr + ? apply_impl (t, *mr.first, mr.second) + : empty_recipe; } group_view |