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/config/utility.txx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libbuild2/config/utility.txx') diff --git a/libbuild2/config/utility.txx b/libbuild2/config/utility.txx index 4c4e305..8c92f86 100644 --- a/libbuild2/config/utility.txx +++ b/libbuild2/config/utility.txx @@ -19,8 +19,7 @@ namespace build2 { // Note: see also omitted() if changing anything here. - if (root.ctx.current_mif->id == configure_id) - save_variable (root, var, save_flags); + save_variable (root, var, save_flags); pair org (root.find_original (var)); -- cgit v1.1