aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/target.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-09-29 08:55:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-09-29 08:55:34 +0200
commitf63c0548281015ca1f7d71079c0880e3634063fb (patch)
treecb5cf0690e9d979c7fb98455f6a3320c7f0f53eb /libbuild2/target.hxx
parent41273da120ef8e4a2bed7576de0532264b042ee1 (diff)
Add notion of bundle amalgamation scope
Diffstat (limited to 'libbuild2/target.hxx')
-rw-r--r--libbuild2/target.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/libbuild2/target.hxx b/libbuild2/target.hxx
index 5f0165e..1c10621 100644
--- a/libbuild2/target.hxx
+++ b/libbuild2/target.hxx
@@ -337,6 +337,12 @@ namespace build2
const scope&
root_scope () const;
+ // Root scope of a bundle amalgamation that contains this target. The
+ // same notes as to root_scope() apply.
+ //
+ const scope&
+ bundle_scope () const {return *root_scope ().bundle_scope ();}
+
// Root scope of a strong amalgamation that contains this target.
// The same notes as to root_scope() apply.
//