From c279979af18d59d935512d91c7e75762b914bdfd Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 18 Jul 2023 18:14:07 +0300 Subject: Don't reconfigure dependency if negotiated configuration doesn't change --- bpkg/pkg-configure.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bpkg/pkg-configure.cxx') 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 srcs; + string checksum; if (!simulate) { + checksum = ps.config_checksum (); + pair> 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 (); -- cgit v1.1