diff options
Diffstat (limited to 'libbuild2/utility.cxx')
-rw-r--r-- | libbuild2/utility.cxx | 5 |
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; |