aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-11-03 08:52:30 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-11-03 08:52:30 +0200
commit552de5b2b5df6b2d41b50d662d65e799d0c876be (patch)
tree1dd47978b61a6ccae317fcc41b06c51905b91f59 /libbuild2
parent066980729c57e00abc3765053cf3f39e3d223a54 (diff)
Work around lack of definition for static constexpr
During bootstrap we compile in C++14 where it is not implicitly inline.
Diffstat (limited to 'libbuild2')
-rw-r--r--libbuild2/install/rule.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/install/rule.cxx b/libbuild2/install/rule.cxx
index 29888ae..985f914 100644
--- a/libbuild2/install/rule.cxx
+++ b/libbuild2/install/rule.cxx
@@ -86,8 +86,8 @@ namespace build2
match_extra&) const
{
const target& pt (search (t, p));
- return make_pair (is == nullptr || pt.in (*is) ? &pt : nullptr,
- match_extra::all_options);
+ const uint64_t options (match_extra::all_options); // No definition.
+ return make_pair (is == nullptr || pt.in (*is) ? &pt : nullptr, options);
}
recipe alias_rule::