aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/utility.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-08-21 12:11:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-08-21 12:11:48 +0200
commitd64ae97f6865bc25d496485622530e2a090c2eb4 (patch)
treeeef35c80417a9a08c7713368261aa6d1e8632b5d /libbuild2/utility.cxx
parentd7b5f03a761714f6ea6c4b1891e8a1f3824d4979 (diff)
Implement dynamic loading of build system modules
Diffstat (limited to 'libbuild2/utility.cxx')
-rw-r--r--libbuild2/utility.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/libbuild2/utility.cxx b/libbuild2/utility.cxx
index 79545cc..cacb464 100644
--- a/libbuild2/utility.cxx
+++ b/libbuild2/utility.cxx
@@ -74,6 +74,11 @@ namespace build2
process_path argv0;
const standard_version build_version (LIBBUILD2_VERSION_STR);
+ const string build_version_interface (
+ build_version.pre_release ()
+ ? build_version.string_project_id ()
+ : (to_string (build_version.major ()) + '.' +
+ to_string (build_version.minor ())));
bool dry_run_option;
optional<bool> mtime_check_option;