aboutsummaryrefslogtreecommitdiff
path: root/build/context.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-08-24 14:49:10 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-08-24 14:52:55 +0200
commitda2bd25f0867a54a3b797815b24e44a130ac2b11 (patch)
tree512648ad685485c1d79468f49c14121c1815bec3 /build/context.cxx
parent532e2085deeddd3e94cfbee1ded1e5917aff2b59 (diff)
Only treat name as directory if it is reversible
Diffstat (limited to 'build/context.cxx')
-rw-r--r--build/context.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/build/context.cxx b/build/context.cxx
index 530ac7a..3e3d0c3 100644
--- a/build/context.cxx
+++ b/build/context.cxx
@@ -72,15 +72,11 @@ namespace build
//
variable_pool.find ("subprojects", nullptr, '=');
- // 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.
+ // Create global scope. For Win32 this is not a "real" root path.
+ // On POSIX, however, this is a real path. See the comment in
+ // <build/path-map> for details.
//
-#ifdef _WIN32
- global_scope = &scopes[dir_path ()];
-#else
global_scope = &scopes[dir_path ("/")];
-#endif
global_scope->assign ("work") = work;
global_scope->assign ("home") = home;