diff options
| author | Jubilee <workingjubilee@gmail.com> | 2024-10-02 21:26:58 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-02 21:26:58 -0700 |
| commit | 44f6275e1453822b01d551cd5c93ca16b8753da6 (patch) | |
| tree | 7fac9a6e3b3adce40d4b2bb231abdc4883ab8107 /compiler/rustc_codegen_llvm/src | |
| parent | ad9c494835e746fb7c8a26eeed0ad90e4e834058 (diff) | |
| parent | 58c5ac43aea5c94d61e3a7a4e8646e714230574d (diff) | |
| download | rust-44f6275e1453822b01d551cd5c93ca16b8753da6.tar.gz rust-44f6275e1453822b01d551cd5c93ca16b8753da6.zip | |
Rollup merge of #126930 - Xaeroxe:file-checksum-hint, r=chenyukang
Add unstable support for outputting file checksums for use in cargo Adds an unstable option that appends file checksums and expected lengths to the end of the dep-info file such that `cargo` can read and use these values as an alternative to file mtimes. This PR powers the changes made in this cargo PR https://github.com/rust-lang/cargo/pull/14137 Here's the tracking issue for the cargo feature https://github.com/rust-lang/cargo/issues/14136.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs b/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs index 964b83c0fa0..b7a6f80956d 100644 --- a/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs +++ b/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs @@ -630,6 +630,7 @@ pub(crate) fn file_metadata<'ll>(cx: &CodegenCx<'ll, '_>, source_file: &SourceFi rustc_span::SourceFileHashAlgorithm::Md5 => llvm::ChecksumKind::MD5, rustc_span::SourceFileHashAlgorithm::Sha1 => llvm::ChecksumKind::SHA1, rustc_span::SourceFileHashAlgorithm::Sha256 => llvm::ChecksumKind::SHA256, + rustc_span::SourceFileHashAlgorithm::Blake3 => llvm::ChecksumKind::None, }; let hash_value = hex_encode(source_file.src_hash.hash_bytes()); |
