From 27547e341f32782ad2d7fd998dde1cb04f4bf1db Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 28 May 2020 14:03:12 +0200 Subject: Allow calling certain search_existing() versions during load phase This is necessary for $target.path() implementation. --- libbuild2/algorithm.cxx | 5 ----- 1 file changed, 5 deletions(-) (limited to 'libbuild2/algorithm.cxx') 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); -- cgit v1.1