diff --git a/src/bootstrap/src/core/build_steps/llvm.rs b/src/bootstrap/src/core/build_steps/llvm.rs index 6736b985ebeba..57f15faca1315 100644 --- a/src/bootstrap/src/core/build_steps/llvm.rs +++ b/src/bootstrap/src/core/build_steps/llvm.rs @@ -1211,7 +1211,12 @@ impl HashStamp { fn is_done(&self) -> bool { match fs::read(&self.path) { - Ok(h) => self.hash.as_deref().unwrap_or(b"") == h.as_slice(), + Ok(h) => { + let unwrapped = self.hash.as_deref().unwrap_or(b""); + let res = unwrapped == h.as_slice(); + eprintln!("Result for {:?}: {res:?} for expected '{unwrapped:?}' and read '{h:?}'", self.path); + res + }, Err(e) if e.kind() == io::ErrorKind::NotFound => false, Err(e) => { panic!("failed to read stamp file `{}`: {}", self.path.display(), e); diff --git a/src/bootstrap/src/lib.rs b/src/bootstrap/src/lib.rs index 86b72b1edf707..0726fc6ced40f 100644 --- a/src/bootstrap/src/lib.rs +++ b/src/bootstrap/src/lib.rs @@ -1887,7 +1887,11 @@ pub fn generate_smart_stamp_hash(dir: &Path, additional_input: &str) -> String { hasher.update(status); hasher.update(additional_input); - hex_encode(hasher.finalize().as_slice()) + let result = hex_encode(hasher.finalize().as_slice()); + + eprintln!("Final hash: {result:?}"); + + result } /// Ensures that the behavior dump directory is properly initialized.