aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/c
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-10-04 10:27:55 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-10-04 10:27:55 +0200
commite1a1d978d364c723935acfc7b56fae8b8253d054 (patch)
tree02b9bdac94800c7d29b40584f7a135f220cd22df /libbuild2/c
parentdb8336a686a85f0e458acb2d5f1ad442585bfc9a (diff)
Add support for treating specific libraries as always internal
Diffstat (limited to 'libbuild2/c')
-rw-r--r--libbuild2/c/init.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/libbuild2/c/init.cxx b/libbuild2/c/init.cxx
index 9a62a5e..01b9ae7 100644
--- a/libbuild2/c/init.cxx
+++ b/libbuild2/c/init.cxx
@@ -202,7 +202,8 @@ namespace build2
vp.insert<strings> ("c.aoptions"),
vp.insert<strings> ("c.libs"),
- vp.insert<string> ("c.internal.scope"),
+ vp.insert<string> ("c.internal.scope"),
+ vp.insert<strings> ("c.internal.libs"),
nullptr /* c.translate_include */,
@@ -365,6 +366,9 @@ namespace build2
cm.internal_scope,
cm.internal_scope_current,
+ cast_null<strings> (rs["cc.internal.libs"]),
+ cast_null<strings> (rs[cm.x_internal_libs]),
+
cast<dir_paths> (rs[cm.x_sys_lib_dirs]),
cast<dir_paths> (rs[cm.x_sys_hdr_dirs]),
cm.x_info->sys_mod_dirs ? &cm.x_info->sys_mod_dirs->first : nullptr,