aboutsummaryrefslogtreecommitdiff
path: root/build/target
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-07-14 09:47:40 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-07-14 09:47:40 +0200
commit8276259438592439236341b74300cb5538303c83 (patch)
tree0e072ee31bd13ff55f2c3e0d4a0b50725f8dd73f /build/target
parent70613e9be046c9cddd2486505a44d3a0324d6d95 (diff)
Add notion of strong/weak amalgamation, make strong new clean boundary
Diffstat (limited to 'build/target')
-rw-r--r--build/target7
1 files changed, 7 insertions, 0 deletions
diff --git a/build/target b/build/target
index ba51f5e..1015b0c 100644
--- a/build/target
+++ b/build/target
@@ -21,6 +21,7 @@
#include <butl/multi-index> // map_iterator_adapter
#include <build/types>
+#include <build/scope>
#include <build/variable>
#include <build/operation>
#include <build/target-type>
@@ -203,6 +204,12 @@ namespace build
scope&
root_scope () const;
+ // Root scope of a strong amalgamation that contains this target.
+ // The same notes as to root_scope() apply.
+ //
+ scope&
+ strong_scope () const {return *root_scope ().strong_scope ();}
+
// Prerequisites.
//
public: