Skip to content

Commit d4ded49

Browse files
committed
🐛 - Fix reset dirty mark in parse code
1 parent 03038a9 commit d4ded49

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/build/parse.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,12 @@ pub fn generate_asts(
9393
.into_iter()
9494
.for_each(|(module_name, ast_path, iast_path, is_dirty)| {
9595
if let Some(module) = build_state.modules.get_mut(&module_name) {
96-
module.compile_dirty = is_dirty;
96+
// if the module is dirty, mark it also compile_dirty
97+
// do NOT set to false if the module is not parse_dirty, it needs to keep
98+
// the compile_dirty flag if it was set before
99+
if is_dirty {
100+
module.compile_dirty = true;
101+
}
97102
let package = build_state
98103
.packages
99104
.get(&module.package_name)

0 commit comments

Comments
 (0)