aboutsummaryrefslogtreecommitdiff
path: root/build2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-11-21 15:14:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-21 15:14:07 +0200
commitfae6cd2235c907e077dad7b5d8dc9b6d90a78a37 (patch)
tree363010dda8c55b4c92ad0486c109e554db282f19 /build2
parent71dec1fe08fd40b599028fbbafb39e0661aeafff (diff)
Change build.driver/path variable to build.path/process_path
Diffstat (limited to 'build2')
-rw-r--r--build2/context.cxx25
1 files changed, 9 insertions, 16 deletions
diff --git a/build2/context.cxx b/build2/context.cxx
index 3b58b90..a193abf 100644
--- a/build2/context.cxx
+++ b/build2/context.cxx
@@ -237,27 +237,20 @@ namespace build2
v.insert<string> ("extension", variable_visibility::target);
}
- // Absolute path to the build system driver.
- //
- {
- path p (argv0.effect_string ());
-
- if (p.relative ())
- {
- p = work / p;
- p.normalize ();
- }
-
- gs.assign<path> ("build.driver") = move (p);
- }
-
gs.assign<dir_path> ("build.work") = work;
gs.assign<dir_path> ("build.home") = home;
- // Enter the version.
+ // Build system driver process path.
+ //
+ gs.assign<process_path> ("build.path") =
+ process_path (nullptr, // Will be filled by value assignment.
+ path (argv0.recall_string ()),
+ path (argv0.effect));
+
+ // Build system version.
//
{
- gs.assign<uint64_t> ("build.version") = uint64_t (BUILD2_VERSION);
+ gs.assign<uint64_t> ("build.version") = uint64_t (BUILD2_VERSION);
gs.assign<string> ("build.version.string") = BUILD2_VERSION_STR;
// AABBCCDD