aboutsummaryrefslogtreecommitdiff
path: root/build/b.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build/b.cxx')
-rw-r--r--build/b.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/build/b.cxx b/build/b.cxx
index 05dac4c..492fdea 100644
--- a/build/b.cxx
+++ b/build/b.cxx
@@ -152,6 +152,16 @@ main (int argc, char* argv[])
trace << "src_root: " << src_root.string ();
}
+ // Create root scope. For Win32 we use the empty path since there
+ // is no such "real" root path. On POSIX, however, this is a real
+ // path. See the comment in <build/path-map> for details.
+ //
+#ifdef _WIN32
+ root_scope = &scopes[path ()];
+#else
+ root_scope = &scopes[path ("/")];
+#endif
+
// Parse buildfile.
//
path bf ("buildfile");