File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -327,10 +327,10 @@ pub fn cleanup_after_build(build_state: &BuildState) {
327
327
// up the AST file if compile is not successful
328
328
match & module. source_type {
329
329
SourceType :: SourceFile ( source_file) => {
330
- // we only clean the cmt (typed tree) here, this will cause the file to be recompiled
330
+ // we only clean the ast here, this will cause the file to be recompiled
331
331
// (and thus keep showing the warning), but it will keep the cmi file, so that we don't
332
332
// unecessary mark all the dependents as dirty, when there is no change in the interface
333
- remove_compile_asset ( package, & source_file. implementation . path , "cmt " ) ;
333
+ remove_compile_asset ( package, & source_file. implementation . path , "ast " ) ;
334
334
}
335
335
SourceType :: MlMap ( _) => ( ) ,
336
336
}
Original file line number Diff line number Diff line change @@ -172,6 +172,10 @@ pub fn get_compiler_asset(
172
172
source_file : & str ,
173
173
extension : & str ,
174
174
) -> String {
175
+ let namespace = match extension {
176
+ "ast" | "iast" => & packages:: Namespace :: NoNamespace ,
177
+ _ => namespace,
178
+ } ;
175
179
package. get_build_path ( )
176
180
+ "/"
177
181
+ & file_path_to_compiler_asset_basename ( source_file, namespace)
You can’t perform that action at this time.
0 commit comments