aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/module.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/module.cxx')
-rw-r--r--libbuild2/module.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/libbuild2/module.cxx b/libbuild2/module.cxx
index b2b4036..9a7975d 100644
--- a/libbuild2/module.cxx
+++ b/libbuild2/module.cxx
@@ -415,6 +415,12 @@ namespace build2
//
context& ctx (*bs.ctx.module_context);
+ // Mark the queue so that we don't work any tasks that may already be
+ // there (we could be called in strange ways, for example, as part of
+ // match via dir_search()).
+ //
+ scheduler::queue_mark qm (ctx.sched);
+
// Load the imported project in the module context.
//
pair<names, const scope&> lr (