aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-07-14 07:04:09 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-07-14 07:04:09 +0200
commit1ac548e25144f13215401dfecbbd588a73324720 (patch)
treeb537334c6d6a78f8f9109263a2ccdd5b4b5da0bf /libbuild2
parentbf0ab18ec2c6364b814d18d24edad6e9a882be20 (diff)
Recognize `build2` as special module name in addition to `build`
This is for consistency with version constraints in manifest.
Diffstat (limited to 'libbuild2')
-rw-r--r--libbuild2/parser.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/parser.cxx b/libbuild2/parser.cxx
index 53ff7f7..cda4c69 100644
--- a/libbuild2/parser.cxx
+++ b/libbuild2/parser.cxx
@@ -2765,9 +2765,9 @@ namespace build2
fail (l) << "invalid module version '" << i->value << "': " << e;
}
- // Handle the special 'build' module.
+ // Handle the special 'build' and 'build2' modules.
//
- if (n == "build")
+ if (n == "build2" || n == "build")
{
if (v)
{