Skip to content

Commit

Permalink
fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Jul 16, 2024
1 parent 70cfef8 commit ef47e85
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions crates/compilers/src/compile/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,12 +372,14 @@ impl<L: Language, S: CompilerSettings> CompilerSources<L, S> {
use path_slash::PathBufExt;

self.sources.values_mut().for_each(|(_, sources, _)| {
*sources = std::mem::take(sources)
.into_iter()
.map(|(path, source)| {
(PathBuf::from(path.to_slash_lossy().as_ref()), source)
})
.collect()
versioned_sources.iter_mut().for_each(|(_, sources, _)| {
*sources = std::mem::take(sources)
.into_iter()
.map(|(path, source)| {
(PathBuf::from(path.to_slash_lossy().as_ref()), source)
})
.collect()
})
});
}
}
Expand Down

0 comments on commit ef47e85

Please sign in to comment.