aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/bin/guess.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-10-25 12:16:15 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-10-25 13:32:46 +0300
commit1c08fae61a1e9a01d56735768ad7f8f3d0b45f41 (patch)
treeb14805acb9d0261d9a067bcef7b25198c13394d2 /libbuild2/bin/guess.cxx
parentcd6708644ed294a0d479dbe04caa7f0f570b80bb (diff)
Adapt to butl::semantic_version API change
Diffstat (limited to 'libbuild2/bin/guess.cxx')
-rw-r--r--libbuild2/bin/guess.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/libbuild2/bin/guess.cxx b/libbuild2/bin/guess.cxx
index 1e97b7a..e935913 100644
--- a/libbuild2/bin/guess.cxx
+++ b/libbuild2/bin/guess.cxx
@@ -34,9 +34,12 @@ namespace build2
// Return 0-version if the version is invalid.
//
static inline semantic_version
- parse_version (const string& s, size_t p = 0, const char* bs = ".-+~ ")
+ parse_version (const string& s, size_t p = 0,
+ semantic_version::flags f = semantic_version::allow_omit_patch |
+ semantic_version::allow_build,
+ const char* bs = ".-+~ ")
{
- optional<semantic_version> v (parse_semantic_version (s, p, bs));
+ optional<semantic_version> v (parse_semantic_version (s, p, f, bs));
return v ? *v : semantic_version ();
}