From 2f1988e89e07437be4d76a39242cde7ab13cf946 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 6 Sep 2017 18:24:03 +0200 Subject: Call dist callback in subprojects This fixes a bug with no updating manifest versions in build2-toolchain subprojects. --- build2/dist/module.hxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'build2/dist/module.hxx') diff --git a/build2/dist/module.hxx b/build2/dist/module.hxx index e6eb975..b66ca73 100644 --- a/build2/dist/module.hxx +++ b/build2/dist/module.hxx @@ -36,6 +36,9 @@ namespace build2 // after it has been copied to the distribution directory. The project's // root scope and callback-specific data are passed along. // + // Note that if registered, the callbacks are also called (recursively) + // in subprojects. + // using callback_func = void (const path&, const scope&, void*); void @@ -56,8 +59,9 @@ namespace build2 callback_func* function; void* data; }; + using callbacks = vector; - vector callbacks_; + callbacks callbacks_; }; } } -- cgit v1.1