We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a7cb1b commit d6afd37Copy full SHA for d6afd37
src/build/clean.rs
@@ -159,6 +159,10 @@ pub fn cleanup_previous_build(
159
.expect("Could not find module for ast file");
160
161
let compile_dirty = compile_assets_state.cmt_modules.get(module_name);
162
+ // if there is a new AST but it has not been compiled yet, we mark the module as compile dirty
163
+ // we do this by checking if the cmt file is newer than the AST file. We always compile the
164
+ // interface AND implementation. For some reason the CMI file is not always rewritten if it
165
+ // doesn't have any changes, that's why we just look at the CMT file.
166
if let Some(compile_dirty) = compile_dirty {
167
let last_modified = Some(ast_last_modified);
168
0 commit comments