diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-02-21 07:38:47 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-02-21 07:38:47 +0200 |
commit | 239f0bc9b5e72f632aa3d65a45b745d6c9df9b70 (patch) | |
tree | e0779f2bf0d4f3068258b8a01f32352b1a51da18 /bpkg/package-skeleton.hxx | |
parent | 9b5acba21213c2bf87d92b0a12f4d41283a13ae3 (diff) |
Do lazy build system initialization only if/when actually needed
Diffstat (limited to 'bpkg/package-skeleton.hxx')
-rw-r--r-- | bpkg/package-skeleton.hxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/bpkg/package-skeleton.hxx b/bpkg/package-skeleton.hxx index 0b573e4..d2a848c 100644 --- a/bpkg/package-skeleton.hxx +++ b/bpkg/package-skeleton.hxx @@ -10,6 +10,7 @@ #include <bpkg/utility.hxx> #include <bpkg/package.hxx> +#include <bpkg/common-options.hxx> namespace bpkg { @@ -28,13 +29,14 @@ namespace bpkg // If the package is not external, then none of the root directories // should be specified. // - // Note that the database and available_package are expected to outlive - // this object. + // Note that the options, database, and available_package are expected to + // outlive this object. // // Note also that this creates an "unloaded" skeleton and is therefore - // cheap. + // relatively cheap. // - package_skeleton (database&, + package_skeleton (const common_options& co, + database&, const available_package&, strings config_vars, optional<dir_path> src_root, @@ -90,6 +92,7 @@ namespace bpkg private: // NOTE: remember to update move/copy constructors! // + const common_options* co_; database* db_; const available_package* available_; strings config_vars_; |