aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/module.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-01-13 12:48:42 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-01-13 12:48:42 +0200
commitf91dcce80beb48bf8b444b472f4820a4ff2b33e5 (patch)
tree20a81c7a939ae09a7a3fb1db7d34cbe62537acf8 /libbuild2/module.cxx
parente21f9ae1a3e36160259a449e06ff52692e58b28c (diff)
Make sure we don't work any existing tasks when building in module context
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 (