aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/bin/init.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-06-24 05:31:55 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-06-24 05:33:49 +0200
commit52128dcc2d88a262238c07fe8acdbcfad684035c (patch)
tree14b2e27b18e09c6577100c21bf79659743059867 /libbuild2/bin/init.cxx
parent73c8c339c5c8fb468c4ddb1632d87d1aeb1cd497 (diff)
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.
Diffstat (limited to 'libbuild2/bin/init.cxx')
-rw-r--r--libbuild2/bin/init.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/libbuild2/bin/init.cxx b/libbuild2/bin/init.cxx
index 2b1df97..563a82f 100644
--- a/libbuild2/bin/init.cxx
+++ b/libbuild2/bin/init.cxx
@@ -29,7 +29,8 @@ namespace build2
namespace bin
{
static const obj_rule obj_;
- static const libul_rule libul_;
+ static const libul_rule libul_ (false);
+ static const libul_rule libul_metadata_ (true);
static const lib_rule lib_;
static const def_rule def_;
@@ -576,6 +577,9 @@ namespace build2
r.insert<libul> (perform_update_id, "bin.libul", libul_);
r.insert<libul> (perform_clean_id, "bin.libul", libul_);
+ r.insert<libul> (perform_update_id, "bin.metadata", libul_metadata_);
+ r.insert<libul> (perform_clean_id, "bin.metadata", libul_metadata_);
+
// Similar to alias.
//
r.insert<lib> (perform_id, 0, "bin.lib", lib_);