diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-12-11 07:20:18 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-12-11 07:20:18 +0200 |
commit | 4cf87fa84a6938e262fd6122e654e5a483a78abe (patch) | |
tree | 9d6a7802d156dc287562f77184396e0cc7b62d23 /libbuild2/cc/common.hxx | |
parent | 3074c5e1409ad49c0793db6384ecbc6ac4ed33a9 (diff) |
Add support for module interface-only libraries
Also suppress generation of the object file in cases where we don't need it.
Diffstat (limited to 'libbuild2/cc/common.hxx')
-rw-r--r-- | libbuild2/cc/common.hxx | 12 |
1 files changed, 12 insertions, 0 deletions
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; // <type>[-<variant>] const variable& config_x_version; |