From 708b092956f10b5c05641f90d55b209e887d52de Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 22 Aug 2019 16:08:45 +0200 Subject: Run phase --- libbuild2/file.ixx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbuild2/file.ixx') diff --git a/libbuild2/file.ixx b/libbuild2/file.ixx index 59b53bb..564fc11 100644 --- a/libbuild2/file.ixx +++ b/libbuild2/file.ixx @@ -18,14 +18,14 @@ namespace build2 inline const target& import (context& ctx, const prerequisite_key& pk) { - assert (phase == run_phase::match); + assert (ctx.phase == run_phase::match); return *import (ctx, pk, false); } inline const target* import_existing (context& ctx, const prerequisite_key& pk) { - assert (phase == run_phase::match || phase == run_phase::execute); + assert (ctx.phase == run_phase::match || ctx.phase == run_phase::execute); return import (ctx, pk, true); } } -- cgit v1.1