diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-09-06 18:24:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-09-06 18:24:03 +0200 |
commit | 2f1988e89e07437be4d76a39242cde7ab13cf946 (patch) | |
tree | 0f9f529046e61df018ffad34cff30485607c5d98 /build2/dist/module.hxx | |
parent | 6f7340c123185c14c204470795e41a6cfb15d819 (diff) |
Call dist callback in subprojects
This fixes a bug with no updating manifest versions in build2-toolchain
subprojects.
Diffstat (limited to 'build2/dist/module.hxx')
-rw-r--r-- | build2/dist/module.hxx | 6 |
1 files changed, 5 insertions, 1 deletions
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<callback>; - vector<callback> callbacks_; + callbacks callbacks_; }; } } |