aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/bin/init.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-12-01 10:01:24 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-12-01 10:01:24 +0200
commitaf55babfc0c01abbd0a074b0d2ed86598d6bf628 (patch)
tree51d02bae14667636cd50dbf5b1e9bfe36dce8985 /libbuild2/bin/init.cxx
parentf8de93520fd604a3771a2af3ca9564f6085d8baa (diff)
Fix corner case in distributing via obj{}, libul{} groups
Diffstat (limited to 'libbuild2/bin/init.cxx')
-rw-r--r--libbuild2/bin/init.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/libbuild2/bin/init.cxx b/libbuild2/bin/init.cxx
index d7c5b5a..78119cb 100644
--- a/libbuild2/bin/init.cxx
+++ b/libbuild2/bin/init.cxx
@@ -605,6 +605,18 @@ namespace build2
if (rs.find_module ("dist"))
{
+ // Note that without custom dist rules in setups along the follwing
+ // lines the source file will be unreachable by dist:
+ //
+ // lib{foo}: obj{foo}
+ // obja{foo}: cxx{foo}
+ // objs{foo}: cxx{foo}
+ //
+ r.insert<obj> (dist_id, 0, "bin.obj", obj_);
+ r.insert<bmi> (dist_id, 0, "bin.bmi", obj_);
+ r.insert<hbmi> (dist_id, 0, "bin.hbmi", obj_);
+ r.insert<libul> (dist_id, 0, "bin.libul", libul_);
+
r.insert<lib> (dist_id, 0, "bin.lib", lib_);
}
}