From 1c7d67d9895c2bdbef13541b154ea17d25b8d515 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 23 Jan 2017 10:53:33 +0200 Subject: Go back to storing scope instead of target in prerequisite Turns out this was semantically the right way to do it. --- build2/target | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'build2/target') diff --git a/build2/target b/build2/target index 3bc9d5c..339ff90 100644 --- a/build2/target +++ b/build2/target @@ -763,13 +763,10 @@ namespace build2 return target != nullptr ? *target : build2::search (prerequisite); } - // Return as a new prerequisite instance for the specified owner target. - // Note that if this is a prerequisite, then both owners should be in the - // same scope (not a requirement if this is a target because then its path - // will be absolute). + // Return as a new prerequisite instance. // prerequisite_type - as_prerequisite_for (target_type& owner) const; + as_prerequisite () const; }; // It is often stored as the target's auxiliary data so make sure there is -- cgit v1.1