Skip to content

Commit eb157ae

Browse files
committed
mark dependent modules dirty based on cmt
1 parent d86bf0a commit eb157ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/build/compile.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ pub fn mark_modules_with_expired_deps_dirty(build_state: &mut BuildState) {
673673
let dependent_module = build_state.modules.get(dependent).unwrap();
674674
match dependent_module.source_type {
675675
SourceType::SourceFile(_) => {
676-
match (module.last_compiled_cmt, module.last_compiled_cmi) {
676+
match (module.last_compiled_cmt, module.last_compiled_cmt) {
677677
(None, None) | (Some(_), None) | (None, Some(_)) => {
678678
// println!(
679679
// "🛑 {} is a dependent of {} but has no cmt/cmi",
@@ -687,7 +687,7 @@ pub fn mark_modules_with_expired_deps_dirty(build_state: &mut BuildState) {
687687
// we compare the last compiled time of the dependent module with the last
688688
// compile of the interface of the module it depends on, if the interface
689689
// didn't change it doesn't matter
690-
match (dependent_module.last_compiled_cmt, module.last_compiled_cmi) {
690+
match (dependent_module.last_compiled_cmt, module.last_compiled_cmt) {
691691
(Some(last_compiled_dependent), Some(last_compiled)) => {
692692
if last_compiled_dependent < last_compiled {
693693
// println!(
@@ -720,7 +720,7 @@ pub fn mark_modules_with_expired_deps_dirty(build_state: &mut BuildState) {
720720
let dependent_module = build_state.modules.get(dependent_of_namespace).unwrap();
721721

722722
if let (Some(last_compiled_dependent), Some(last_compiled)) =
723-
(dependent_module.last_compiled_cmt, module.last_compiled_cmi)
723+
(dependent_module.last_compiled_cmt, module.last_compiled_cmt)
724724
{
725725
if last_compiled_dependent < last_compiled {
726726
modules_with_expired_deps.insert(dependent.to_string());

0 commit comments

Comments
 (0)