diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-05-28 14:03:12 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-05-28 14:03:12 +0200 |
commit | 27547e341f32782ad2d7fd998dde1cb04f4bf1db (patch) | |
tree | a87ec58755cb133566b5c1fafae4d68bebeeed09 /libbuild2/algorithm.cxx | |
parent | cd651d5ca3572413180827232eb18239750befca (diff) |
Allow calling certain search_existing() versions during load phase
This is necessary for $target.path() implementation.
Diffstat (limited to 'libbuild2/algorithm.cxx')
-rw-r--r-- | libbuild2/algorithm.cxx | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libbuild2/algorithm.cxx b/libbuild2/algorithm.cxx index 11f2a56..0924540 100644 --- a/libbuild2/algorithm.cxx +++ b/libbuild2/algorithm.cxx @@ -71,8 +71,6 @@ namespace build2 const target* search_existing (context& ctx, const prerequisite_key& pk) { - assert (ctx.phase == run_phase::match || ctx.phase == run_phase::execute); - return pk.proj ? import_existing (ctx, pk) : search_existing_target (ctx, pk); @@ -109,9 +107,6 @@ namespace build2 const target* search_existing (const name& cn, const scope& s, const dir_path& out) { - assert (s.ctx.phase == run_phase::match || - s.ctx.phase == run_phase::execute); - // See also scope::find_prerequisite_key(). // name n (cn); |