File tree 2 files changed +3
-8
lines changed
2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -1364,13 +1364,8 @@ pub fn build_session(
1364
1364
}
1365
1365
1366
1366
let loader = file_loader. unwrap_or_else ( || Box :: new ( RealFileLoader ) ) ;
1367
- let hash_kind = sopts. unstable_opts . src_hash_algorithm . unwrap_or_else ( || {
1368
- if target_cfg. is_like_msvc {
1369
- SourceFileHashAlgorithm :: Sha256
1370
- } else {
1371
- SourceFileHashAlgorithm :: Md5
1372
- }
1373
- } ) ;
1367
+ let hash_kind =
1368
+ sopts. unstable_opts . src_hash_algorithm . unwrap_or ( SourceFileHashAlgorithm :: Sha256 ) ;
1374
1369
let source_map = Lrc :: new ( SourceMap :: with_file_loader_and_hash_kind (
1375
1370
loader,
1376
1371
sopts. file_path_mapping ( ) ,
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ impl SourceMap {
228
228
Self :: with_file_loader_and_hash_kind (
229
229
Box :: new ( RealFileLoader ) ,
230
230
path_mapping,
231
- SourceFileHashAlgorithm :: Md5 ,
231
+ SourceFileHashAlgorithm :: Sha256 ,
232
232
)
233
233
}
234
234
You can’t perform that action at this time.
0 commit comments