diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-12-02 01:24:02 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2016-12-05 17:21:48 +0300 |
commit | d04cd568c85262d486f7a0de0a374c80d466c58e (patch) | |
tree | f69056aa0d98299807ee53fa891d8775d41f9f26 /build2/context.cxx | |
parent | 26bdc152246f6a1caf1f0667b5f04f1804d599fa (diff) |
Use empty path for root scope
Diffstat (limited to 'build2/context.cxx')
-rw-r--r-- | build2/context.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/build2/context.cxx b/build2/context.cxx index a193abf..0966c3a 100644 --- a/build2/context.cxx +++ b/build2/context.cxx @@ -80,19 +80,17 @@ namespace build2 operation_table.insert ("install"); operation_table.insert ("uninstall"); - // Create global scope. For Win32 this is not a "real" root path. - // On POSIX, however, this is a real path. See the comment in - // <build2/path-map> for details. + // Create global scope. Note that the empty path is a prefix for any other + // path. See the comment in <butl/prefix-map> for details. // { - auto i (scopes.insert (dir_path ("/"), false)); + auto i (scopes.insert (dir_path (), false)); global_scope = &i->second; global_scope->out_path_ = &i->first; } scope& gs (*global_scope); - // Parse and enter the command line variables. We do it before entering // any other variables so that all the variables that are overriden are // marked as such first. Then, as we enter variables, we can verify that |