Skip to content

Commit

Permalink
🐛 - Fix reset dirty mark in parse code
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrolich committed Apr 15, 2024
1 parent 03038a9 commit d4ded49
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/build/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,12 @@ pub fn generate_asts(
.into_iter()
.for_each(|(module_name, ast_path, iast_path, is_dirty)| {
if let Some(module) = build_state.modules.get_mut(&module_name) {
module.compile_dirty = is_dirty;
// if the module is dirty, mark it also compile_dirty
// do NOT set to false if the module is not parse_dirty, it needs to keep
// the compile_dirty flag if it was set before
if is_dirty {
module.compile_dirty = true;
}
let package = build_state
.packages
.get(&module.package_name)
Expand Down

0 comments on commit d4ded49

Please sign in to comment.