From 52128dcc2d88a262238c07fe8acdbcfad684035c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 24 Jun 2022 05:31:55 +0200 Subject: Match rule to libul{} with explicit bin.metadata hint This rule picks, matches, and unmatches (if possible) a member for the purpose of making its metadata (for example, library's poptions, if it's one of the cc libraries) available. --- libbuild2/bin/utility.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libbuild2/bin/utility.cxx') diff --git a/libbuild2/bin/utility.cxx b/libbuild2/bin/utility.cxx index cb06287..2a87bbd 100644 --- a/libbuild2/bin/utility.cxx +++ b/libbuild2/bin/utility.cxx @@ -57,6 +57,11 @@ namespace build2 // prefer static over shared since it could be faster (but I am sure // someone will probably want this configurable). // + // Maybe we should use the bin.exe.lib order as a heuristics (i.e., + // the most likely utility library to be built is the one most likely + // to be linked)? Will need the variables rs-only, similar to + // bin.lib, which probably is a good thing. See also libul_rule. + // if (li.type == otype::e) { // Utility libraries are project-local which means the primarily -- cgit v1.1