diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-01-23 10:53:33 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-01-23 10:53:33 +0200 |
commit | 1c7d67d9895c2bdbef13541b154ea17d25b8d515 (patch) | |
tree | ac06cf710a0104c51fdb4c4c47db3e245ac2c793 /build2/target | |
parent | 91495e646c688eade6b46f21bb40e3da8b8d6f1a (diff) |
Go back to storing scope instead of target in prerequisite
Turns out this was semantically the right way to do it.
Diffstat (limited to 'build2/target')
-rw-r--r-- | build2/target | 7 |
1 files changed, 2 insertions, 5 deletions
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 |