From 96f2131e593e206f0e458409f22adfff8c1b5356 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 28 Mar 2016 15:59:06 +0200 Subject: Clean up variable usage --- build2/cxx/compile.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'build2/cxx/compile.cxx') diff --git a/build2/cxx/compile.cxx b/build2/cxx/compile.cxx index cf0c91c..c4e9cee 100644 --- a/build2/cxx/compile.cxx +++ b/build2/cxx/compile.cxx @@ -461,10 +461,10 @@ namespace build2 auto init_args = [&t, &s, &rs, &args, &cxx_std] () { - const string& cxx (cast (rs["config.cxx"])); + const path& cxx (cast (rs["config.cxx"])); const string& sys (cast (rs["cxx.target.system"])); - args.push_back (cxx.c_str ()); + args.push_back (cxx.string ().c_str ()); // Add cxx.export.poptions from prerequisite libraries. Note // that here we don't need to see group members (see apply()). @@ -923,10 +923,10 @@ namespace build2 path rels (relative (s->path ())); scope& rs (t.root_scope ()); - const string& cxx (cast (rs["config.cxx"])); + const path& cxx (cast (rs["config.cxx"])); const string& sys (cast (rs["cxx.target.system"])); - cstrings args {cxx.c_str ()}; + cstrings args {cxx.string ().c_str ()}; // Add cxx.export.poptions from prerequisite libraries. Note that // here we don't need to see group members (see apply()). -- cgit v1.1