From b39ce46b80ef5cccc592398e0a74ba8d02742ead Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 4 Nov 2019 13:34:52 +0200 Subject: Add $config.export() function This is similar to the config.export variable functionality except it can be called from within buildfiles. Note that this function can only be used during configure unless the config module creation was forced for other meta-operations with config.module=true in bootstrap.build. --- libbuild2/install/init.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libbuild2/install') diff --git a/libbuild2/install/init.cxx b/libbuild2/install/init.cxx index 445f2b1..1054e83 100644 --- a/libbuild2/install/init.cxx +++ b/libbuild2/install/init.cxx @@ -137,8 +137,8 @@ namespace build2 context& ctx (rs.ctx); - // Register install function family if this is the first instance of the - // install modules. + // Register the install function family if this is the first instance of + // the install modules. // if (!function_family::defined (ctx.functions, "install")) functions (ctx.functions); @@ -188,8 +188,7 @@ namespace build2 return true; } - const dir_path& out_root (rs.out_path ()); - l5 ([&]{trace << "for " << out_root;}); + l5 ([&]{trace << "for " << rs;}); assert (config_hints.empty ()); // We don't known any hints. -- cgit v1.1