aboutsummaryrefslogtreecommitdiff
path: root/build/target
diff options
context:
space:
mode:
Diffstat (limited to 'build/target')
-rw-r--r--build/target8
1 files changed, 7 insertions, 1 deletions
diff --git a/build/target b/build/target
index 69f8f4f..22b5e89 100644
--- a/build/target
+++ b/build/target
@@ -229,6 +229,12 @@ namespace build
scope&
strong_scope () const {return *root_scope ().strong_scope ();}
+ // Root scope of the outermost amalgamation that contains this target.
+ // The same notes as to root_scope() apply.
+ //
+ scope&
+ weak_scope () const {return *root_scope ().weak_scope ();}
+
bool
in (const scope& s) const
@@ -517,7 +523,7 @@ namespace build
key () const
{
return target != nullptr
- ? prerequisite_key {&prerequisite.get ().proj, target->key (), nullptr}
+ ? prerequisite_key {prerequisite.get ().proj, target->key (), nullptr}
: prerequisite.get ().key ();
}