From 4cf87fa84a6938e262fd6122e654e5a483a78abe Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 11 Dec 2020 07:20:18 +0200 Subject: Add support for module interface-only libraries Also suppress generation of the object file in cases where we don't need it. --- libbuild2/cc/common.hxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libbuild2/cc/common.hxx') diff --git a/libbuild2/cc/common.hxx b/libbuild2/cc/common.hxx index bf971ab..f072591 100644 --- a/libbuild2/cc/common.hxx +++ b/libbuild2/cc/common.hxx @@ -42,6 +42,18 @@ namespace build2 // const char* const* x_hinters; + // We set this variable on the bmi*{} target to indicate whether it + // belongs to a binless library. More specifically, it controls both + // the production and consumption (linking) of the object file with + // the following possible states: + // + // produce consume + // true y y (binless normal or sidebuild) + // false n n (binful sidebuild) + // absent y n (binful normal) + // + const variable& b_binless; // bin.binless + const variable& config_x; const variable& config_x_id; // [-] const variable& config_x_version; -- cgit v1.1