aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/pkgconfig.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-08-05 15:26:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-08-05 15:26:45 +0200
commitc5f14c1735d1eb1c7df29515da78e3acde15a5a3 (patch)
treeebf1ba81e1eabac7d3e3253f7c2401a92c577160 /libbuild2/cc/pkgconfig.cxx
parent3f10e86873306e443159d3b8296eb024461e5c2f (diff)
Implement traversal pruning in process_libraries()
Diffstat (limited to 'libbuild2/cc/pkgconfig.cxx')
-rw-r--r--libbuild2/cc/pkgconfig.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/libbuild2/cc/pkgconfig.cxx b/libbuild2/cc/pkgconfig.cxx
index 7061491..c3a9028 100644
--- a/libbuild2/cc/pkgconfig.cxx
+++ b/libbuild2/cc/pkgconfig.cxx
@@ -1662,7 +1662,7 @@ namespace build2
if (al != nullptr && al->end != appended_library::npos)
{
d.ls.hoist (d.args, *al);
- return;
+ return true;
}
if (l != nullptr)
@@ -1680,6 +1680,8 @@ namespace build2
if (al != nullptr)
al->end = d.args.size (); // Close.
+
+ return true;
};
auto opt = [&d] (const target& lt, const string&, bool, bool)
@@ -1693,7 +1695,9 @@ namespace build2
// See link_rule::append_libraries().
if (d.ls.append (l, d.args.size ()).end != appended_library::npos)
- return;
+ return true;
+
+ return true;
};
// Pretend we are linking an executable using what would be normal,