From 3ce44330cca9dbc4314feebb27403ebc3175b6c2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 28 Mar 2016 09:14:31 +0200 Subject: New variable architecture --- build2/cxx/module.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'build2/cxx/module.cxx') diff --git a/build2/cxx/module.cxx b/build2/cxx/module.cxx index 7c6a4dd..d491079 100644 --- a/build2/cxx/module.cxx +++ b/build2/cxx/module.cxx @@ -46,7 +46,7 @@ namespace build2 { auto l (b["bin.loaded"]); - if (!l || !as (*l)) + if (!l || !cast (*l)) load_module (false, "bin", r, b, loc); } @@ -157,16 +157,16 @@ namespace build2 // cxx.coptions += # Note: '+='. // if (const value& v = config::optional (r, "config.cxx.poptions")) - b.assign ("cxx.poptions") += as (v); + b.assign ("cxx.poptions") += cast (v); if (const value& v = config::optional (r, "config.cxx.coptions")) - b.assign ("cxx.coptions") += as (v); + b.assign ("cxx.coptions") += cast (v); if (const value& v = config::optional (r, "config.cxx.loptions")) - b.assign ("cxx.loptions") += as (v); + b.assign ("cxx.loptions") += cast (v); if (const value& v = config::optional (r, "config.cxx.libs")) - b.assign ("cxx.libs") += as (v); + b.assign ("cxx.libs") += cast (v); // config.cxx // @@ -176,7 +176,7 @@ namespace build2 // Figure out which compiler we are dealing with, its target, etc. // - const path& cxx (path (as (p.first))); // @@ VAR + const path& cxx (path (cast (p.first))); // @@ VAR compiler_info ci (guess (cxx, r["cxx.coptions"])); // If this is a new value (e.g., we are configuring), then print the -- cgit v1.1