diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2023-07-18 18:14:07 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2023-07-19 12:45:26 +0300 |
commit | c279979af18d59d935512d91c7e75762b914bdfd (patch) | |
tree | c4ca714c0b8e417263c55e8abb40a9927b80054f /bpkg/pkg-configure.cxx | |
parent | c48b045245e3fa019d3fe41b7ea5e77369629156 (diff) |
Don't reconfigure dependency if negotiated configuration doesn't change
Diffstat (limited to 'bpkg/pkg-configure.cxx')
-rw-r--r-- | bpkg/pkg-configure.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bpkg/pkg-configure.cxx b/bpkg/pkg-configure.cxx index 2801539..291929b 100644 --- a/bpkg/pkg-configure.cxx +++ b/bpkg/pkg-configure.cxx @@ -371,9 +371,12 @@ namespace bpkg // etc) as well as their sources. // vector<config_variable> srcs; + string checksum; if (!simulate) { + checksum = ps.config_checksum (); + pair<strings, vector<config_variable>> rvs (move (ps).collect_config ()); strings& vs (rvs.first); @@ -395,7 +398,8 @@ namespace bpkg return configure_prerequisites_result {move (prereqs), move (vars), - move (srcs)}; + move (srcs), + move (checksum)}; } @@ -767,6 +771,7 @@ namespace bpkg #endif p->config_variables = move (cpr.config_sources); + p->config_checksum = move (cpr.config_checksum); } p->out_root = out_root.leaf (); |