aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-11-03 10:35:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-11-03 10:35:16 +0200
commit7c0629063ef64b6c7732e7ac94a6ecefcda4d828 (patch)
tree6ba943f041926d08eb1c50d01c9e414b7f682d05
parent552de5b2b5df6b2d41b50d662d65e799d0c876be (diff)
Work around lack of definition for static constexpr some more
-rw-r--r--libbuild2/install/rule.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/libbuild2/install/rule.cxx b/libbuild2/install/rule.cxx
index 985f914..873b2e9 100644
--- a/libbuild2/install/rule.cxx
+++ b/libbuild2/install/rule.cxx
@@ -293,7 +293,8 @@ namespace build2
action, const target& t, const prerequisite& p,
match_extra&) const
{
- pair<const target*, uint64_t> r (nullptr, match_extra::all_options);
+ const uint64_t options (match_extra::all_options); // No definition.
+ pair<const target*, uint64_t> r (nullptr, options);
// The same logic as in file_rule::filter() below.
//
@@ -408,7 +409,8 @@ namespace build2
action, const target& t, const prerequisite& p,
match_extra&) const
{
- pair<const target*, uint64_t> r (nullptr, match_extra::all_options);
+ const uint64_t options (match_extra::all_options); // No definition.
+ pair<const target*, uint64_t> r (nullptr, options);
// See also group_rule::filter() with identical semantics.
//