mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
Use SHA256 by default when targeting MSVC
This commit is contained in:
parent
079e544174
commit
fcdff634cf
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user