aboutsummaryrefslogtreecommitdiff
path: root/build2/context.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/context.cxx')
-rw-r--r--build2/context.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/build2/context.cxx b/build2/context.cxx
index 60e55bd..e08fb52 100644
--- a/build2/context.cxx
+++ b/build2/context.cxx
@@ -183,6 +183,9 @@ namespace build2
if (r.first.type != nullptr)
fail << "typed override of variable " << n;
+ // Global and scope overrides we can enter directly. Project ones will
+ // be entered by the caller for for each amalgamation/project.
+ //
if (c == '!' || !dir.empty ())
{
scope& s (c == '!' ? gs : scopes.insert (dir, false)->second);