From b2df0b0663d0537dd3b4f2d28d145ccd90417cab Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 18 Aug 2020 08:04:07 +0200 Subject: Add ability to mark config.* variables as "unsaved" (always transient) --- libbuild2/config/module.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libbuild2/config/module.cxx') diff --git a/libbuild2/config/module.cxx b/libbuild2/config/module.cxx index 6b0c82a..bf68c4e 100644 --- a/libbuild2/config/module.cxx +++ b/libbuild2/config/module.cxx @@ -12,7 +12,7 @@ namespace build2 namespace config { bool module:: - save_variable (const variable& var, uint64_t flags) + save_variable (const variable& var, optional flags) { const string& n (var.name); @@ -39,7 +39,7 @@ namespace build2 if (j != sv.end ()) { - assert (j->flags == flags); + assert (!j->flags == !flags && (!flags || *j->flags == *flags)); return false; } @@ -48,7 +48,7 @@ namespace build2 } void module:: - save_variable (scope& rs, const variable& var, uint64_t flags) + save_variable (scope& rs, const variable& var, optional flags) { if (module* m = rs.find_module (module::name)) m->save_variable (var, flags); -- cgit v1.1