diff options
| author | Jacob Kiesel <jake@bitcrafters.co> | 2024-06-22 01:27:59 -0600 | 
|---|---|---|
| committer | Jacob Kiesel <jake@bitcrafters.co> | 2024-10-01 21:23:20 -0600 | 
| commit | bb5a8276be2d3dbc97d0f52e90db15455d542edf (patch) | |
| tree | ee179495725a17cf0a862ce5f6db95e0c6969813 /compiler/rustc_interface/src/interface.rs | |
| parent | bfe5e8cef698ccc4fca655b4cdbabf78fed43816 (diff) | |
| download | rust-bb5a8276be2d3dbc97d0f52e90db15455d542edf.tar.gz rust-bb5a8276be2d3dbc97d0f52e90db15455d542edf.zip | |
add unstable support for outputting file checksums for use in cargo
Diffstat (limited to 'compiler/rustc_interface/src/interface.rs')
| -rw-r--r-- | compiler/rustc_interface/src/interface.rs | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/compiler/rustc_interface/src/interface.rs b/compiler/rustc_interface/src/interface.rs index bd38b3c109a..3920d3077d3 100644 --- a/compiler/rustc_interface/src/interface.rs +++ b/compiler/rustc_interface/src/interface.rs @@ -389,12 +389,13 @@ pub fn run_compiler<R: Send>(config: Config, f: impl FnOnce(&Compiler) -> R + Se let file_loader = config.file_loader.unwrap_or_else(|| Box::new(RealFileLoader)); let path_mapping = config.opts.file_path_mapping(); let hash_kind = config.opts.unstable_opts.src_hash_algorithm(&target); + let checksum_hash_kind = config.opts.unstable_opts.checksum_hash_algorithm(); util::run_in_thread_pool_with_globals( &early_dcx, config.opts.edition, config.opts.unstable_opts.threads, - SourceMapInputs { file_loader, path_mapping, hash_kind }, + SourceMapInputs { file_loader, path_mapping, hash_kind, checksum_hash_kind }, |current_gcx| { // The previous `early_dcx` can't be reused here because it doesn't // impl `Send`. Creating a new one is fine. | 
