aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/common.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cc/common.cxx')
-rw-r--r--build2/cc/common.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/build2/cc/common.cxx b/build2/cc/common.cxx
index 1bfb354..b4b0a6d 100644
--- a/build2/cc/common.cxx
+++ b/build2/cc/common.cxx
@@ -971,7 +971,7 @@ namespace build2
// Extract user-supplied search paths (i.e., -L, /LIBPATH).
//
- auto extract = [&r, this] (const value& val, const variable& what)
+ auto extract = [&bs, &r, this] (const value& val, const variable& var)
{
const auto& v (cast<strings> (val));
@@ -1012,8 +1012,10 @@ namespace build2
}
catch (const invalid_path& e)
{
- fail << "invalid path '" << e.path << "' in option '" << o
- << "' in variable " << what;
+ fail << "invalid directory '" << e.path << "'"
+ << " in option '" << o << "'"
+ << " in variable " << var
+ << " for scope " << bs;
}
// Ignore relative paths. Or maybe we should warn?