diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-24 16:50:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-24 16:50:03 +0200 |
commit | 78724c86b63d08b08ebe8be2a98856a7c9dc6d75 (patch) | |
tree | fb2555b2f153c3cb23affe34de8fc8da6a88cf57 /build2/cc/init.cxx | |
parent | 3a8972b42f75e10e9a833bba58d65009e7bed7f3 (diff) |
Pick *.libs variable depending on library type during static linking
Diffstat (limited to 'build2/cc/init.cxx')
-rw-r--r-- | build2/cc/init.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/build2/cc/init.cxx b/build2/cc/init.cxx index 0c82169..0f1fda7 100644 --- a/build2/cc/init.cxx +++ b/build2/cc/init.cxx @@ -60,6 +60,13 @@ namespace build2 v.insert<string> ("config.cc.target"); v.insert<string> ("config.cc.pattern"); + // Target type, for example, "C library" or "C++ library". Should be set + // on the target by the matching rule to the name of the module (e.g., + // "c", "cxx"). Currenly only set for libraries and is used to decide + // which *.libs to use during static linking. + // + v.insert<string> ("cc.type"); + return true; } |