aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/config/functions.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/config/functions.cxx')
-rw-r--r--libbuild2/config/functions.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbuild2/config/functions.cxx b/libbuild2/config/functions.cxx
index aaf74ec..5e85238 100644
--- a/libbuild2/config/functions.cxx
+++ b/libbuild2/config/functions.cxx
@@ -27,7 +27,9 @@ namespace build2
// config module creation was requested for other meta-operations with
// config.config.module=true in bootstrap.build.
//
- f[".save"] = [] (const scope* s)
+ // Note that this function is not pure.
+ //
+ f.insert (".save", false) += [] (const scope* s)
{
if (s == nullptr)
fail << "config.save() called out of scope" << endf;