Skip to content

Commit c4ec52c

Browse files
committed
Invalidate cache on preprocess option toggle
1 parent d8ece14 commit c4ec52c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/compilers/src/cache.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1026,8 +1026,8 @@ impl<'a, T: ArtifactOutput<CompilerContract = C::CompilerContract>, C: Compiler>
10261026

10271027
if !invalidate_cache && project.cache_path().exists() {
10281028
if let Ok(cache) = CompilerCache::read_joined(&project.paths) {
1029-
if cache.paths == paths {
1030-
// unchanged project paths
1029+
if cache.paths == paths && preprocessed == cache.preprocessed {
1030+
// unchanged project paths and same preprocess cache option
10311031
return cache;
10321032
}
10331033
}

0 commit comments

Comments
 (0)