aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/windows-rpath.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cc/windows-rpath.cxx')
-rw-r--r--build2/cc/windows-rpath.cxx14
1 files changed, 12 insertions, 2 deletions
diff --git a/build2/cc/windows-rpath.cxx b/build2/cc/windows-rpath.cxx
index c710e66..268bab2 100644
--- a/build2/cc/windows-rpath.cxx
+++ b/build2/cc/windows-rpath.cxx
@@ -59,8 +59,13 @@ namespace build2
//
auto imp = [] (const file&, bool) {return true;};
- auto lib = [&r] (const file* l, const string& f, lflags, bool sys)
+ auto lib = [&r] (const file* const* lc,
+ const string& f,
+ lflags,
+ bool sys)
{
+ const file* l (lc != nullptr ? *lc : nullptr);
+
// We don't rpath system libraries.
//
if (sys)
@@ -135,8 +140,13 @@ namespace build2
auto imp = [] (const file&, bool) {return true;};
- auto lib = [&r, &bs] (const file* l, const string& f, lflags, bool sys)
+ auto lib = [&r, &bs] (const file* const* lc,
+ const string& f,
+ lflags,
+ bool sys)
{
+ const file* l (lc != nullptr ? *lc : nullptr);
+
if (sys)
return;