aboutsummaryrefslogtreecommitdiff
path: root/build2/config/utility.txx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/config/utility.txx')
-rw-r--r--build2/config/utility.txx4
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/config/utility.txx b/build2/config/utility.txx
index 4e6747b..ce9e40f 100644
--- a/build2/config/utility.txx
+++ b/build2/config/utility.txx
@@ -39,14 +39,14 @@ namespace build2
value& v (root.assign (var) = def_val);
v.extra = true; // Default value flag.
- n = true;
+ n = (save_flags & save_commented) == 0; // Absence means default.
l = lookup (v, root);
org = make_pair (l, 1); // Lookup depth is 1 since it's in root.vars.
}
// Treat an inherited value that was set to default as new.
//
else if (l->extra)
- n = true;
+ n = (save_flags & save_commented) == 0; // Absence means default.
if (var.override != nullptr)
{