From 45ae0f38febb82a99844df84b65ec0fec31d2918 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 11 Nov 2019 15:50:44 +0200 Subject: Change default for unused config.import.* variables from drop to keep --- libbuild2/config/init.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'libbuild2/config/init.cxx') diff --git a/libbuild2/config/init.cxx b/libbuild2/config/init.cxx index bcaea83..e1c1dd0 100644 --- a/libbuild2/config/init.cxx +++ b/libbuild2/config/init.cxx @@ -40,14 +40,15 @@ namespace build2 auto& vp (rs.ctx.var_pool.rw (rs)); - // While config.import (see below) could theoretically be specified in a - // buildfile, config.export is expected to always be specified as a - // command line override. + // While config.import could theoretically be specified in a buildfile, + // config.export is expected to always be specified as a command line + // override. // - // Note: must be entered during bootstrap since we need it in + // Note: must be entered during bootstrap since we need them in // configure_execute(). // - vp.insert ("config.export", true /* ovr */); + vp.insert ("config.export", true /* ovr */); + vp.insert ("config.import", true /* ovr */); // Only create the module if we are configuring or creating or if it was // forced with config.module (useful if we need to call $config.export() @@ -124,7 +125,6 @@ namespace build2 auto& vp (rs.ctx.var_pool.rw (rs)); auto& c_v (vp.insert ("config.version", false /*ovr*/)); - auto& c_i (vp.insert ("config.import", true /* ovr */)); // Load config.build if one exists followed by extra files specified in // config.import (we don't need to worry about disfigure since we will @@ -181,7 +181,7 @@ namespace build2 load_config_file (f, l); } - if (lookup l = rs[c_i]) + if (lookup l = rs["config.import"]) { // Only load files that were specified on our root scope as well as // global overrides. This way we can use our override "positioning" -- cgit v1.1