Use SHA256 by default when targeting MSVC

This commit is contained in:
Arlie Davis 2023-07-14 14:30:06 -07:00
parent 079e544174
commit fcdff634cf

View File

@ -1420,7 +1420,7 @@ pub fn build_session(
let loader = file_loader.unwrap_or_else(|| Box::new(RealFileLoader)); let loader = file_loader.unwrap_or_else(|| Box::new(RealFileLoader));
let hash_kind = sopts.unstable_opts.src_hash_algorithm.unwrap_or_else(|| { let hash_kind = sopts.unstable_opts.src_hash_algorithm.unwrap_or_else(|| {
if target_cfg.is_like_msvc { if target_cfg.is_like_msvc {
SourceFileHashAlgorithm::Sha1 SourceFileHashAlgorithm::Sha256
} else { } else {
SourceFileHashAlgorithm::Md5 SourceFileHashAlgorithm::Md5
} }