From fae6cd2235c907e077dad7b5d8dc9b6d90a78a37 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 21 Nov 2016 15:14:07 +0200 Subject: Change build.driver/path variable to build.path/process_path --- build2/context.cxx | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) (limited to 'build2/context.cxx') 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 ("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 ("build.driver") = move (p); - } - gs.assign ("build.work") = work; gs.assign ("build.home") = home; - // Enter the version. + // Build system driver process path. + // + gs.assign ("build.path") = + process_path (nullptr, // Will be filled by value assignment. + path (argv0.recall_string ()), + path (argv0.effect)); + + // Build system version. // { - gs.assign ("build.version") = uint64_t (BUILD2_VERSION); + gs.assign ("build.version") = uint64_t (BUILD2_VERSION); gs.assign ("build.version.string") = BUILD2_VERSION_STR; // AABBCCDD -- cgit v1.1