Skip to content

Commit f9bc74a

Browse files
committed
Unbreak the regeneration logic
1 parent 9454f1d commit f9bc74a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/build.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ pub fn cbuild(
11451145
for m in ws.members_mut().filter(|p| is_relevant_package(p)) {
11461146
let cpkg = CPackage::from_package(m, args, library_types, &rustc_target, &root_output)?;
11471147

1148-
pristine |= cpkg.finger_print.load_previous().is_err();
1148+
pristine |= cpkg.finger_print.load_previous().is_err() || !cpkg.finger_print.is_valid();
11491149

11501150
members.push(cpkg);
11511151
}
@@ -1188,8 +1188,7 @@ pub fn cbuild(
11881188

11891189
for cpkg in members.iter_mut() {
11901190
// it is a new build, build the additional files and update update the cache
1191-
// if the hash value does not match.
1192-
if new_build || !cpkg.finger_print.is_valid() {
1191+
if new_build {
11931192
let name = &cpkg.capi_config.library.name;
11941193
let (pkg_config_static_libs, static_libs) = if library_types.only_cdylib() {
11951194
(String::new(), String::new())

0 commit comments

Comments
 (0)