aboutsummaryrefslogtreecommitdiff
path: root/build/context.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-07-13 10:01:36 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-07-13 10:01:36 +0200
commitbef7c36a3479b9b83eaf4be9ef090b21d6468f12 (patch)
tree15a827bd6175a558dc0924b933cf3a6f9f0f9d88 /build/context.cxx
parent4208f2d755f2bd2215051390f6500ccf54f1858f (diff)
Make subprojects list of name=subdir pairs
Diffstat (limited to 'build/context.cxx')
-rw-r--r--build/context.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/build/context.cxx b/build/context.cxx
index dce6967..32c9e9b 100644
--- a/build/context.cxx
+++ b/build/context.cxx
@@ -38,6 +38,10 @@ namespace build
scopes.clear ();
variable_pool.clear ();
+ // Enter builtin variables.
+ //
+ variable_pool.insert (variable ("subprojects", '='));
+
// Create global scope. For Win32 we use the empty path since there
// is no "real" root path. On POSIX, however, this is a real path.
// See the comment in <build/path-map> for details.