diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-07-14 07:04:09 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-07-14 07:04:09 +0200 |
commit | 1ac548e25144f13215401dfecbbd588a73324720 (patch) | |
tree | b537334c6d6a78f8f9109263a2ccdd5b4b5da0bf /libbuild2/parser.cxx | |
parent | bf0ab18ec2c6364b814d18d24edad6e9a882be20 (diff) |
Recognize `build2` as special module name in addition to `build`
This is for consistency with version constraints in manifest.
Diffstat (limited to 'libbuild2/parser.cxx')
-rw-r--r-- | libbuild2/parser.cxx | 4 |
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) { |