diff options
| author | bors <bors@rust-lang.org> | 2023-06-14 02:34:17 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-06-14 02:34:17 +0000 |
| commit | fa8762b7b6c2b75d6c83fb011ee8fa4874168829 (patch) | |
| tree | 01687f18762f668dd6d7574380948424a2a12acd /compiler/rustc_codegen_llvm/src | |
| parent | 6330daade9766bbf896495898c2347dc3be6da17 (diff) | |
| parent | 7c3ce02a1124b008addb9764173ad441f4741c00 (diff) | |
| download | rust-fa8762b7b6c2b75d6c83fb011ee8fa4874168829.tar.gz rust-fa8762b7b6c2b75d6c83fb011ee8fa4874168829.zip | |
Auto merge of #112448 - nnethercote:no-tiny-cgus, r=wesleywiser
Introduce a minimum CGU size in non-incremental builds. Because tiny CGUs slow down compilation *and* result in worse generated code. r? `@wesleywiser`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs b/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs index 166454d3ae7..fa67a1b3310 100644 --- a/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs +++ b/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs @@ -1385,7 +1385,7 @@ fn vcall_visibility_metadata<'ll, 'tcx>( let trait_def_id = trait_ref_self.def_id(); let trait_vis = cx.tcx.visibility(trait_def_id); - let cgus = cx.sess().codegen_units(); + let cgus = cx.sess().codegen_units().as_usize(); let single_cgu = cgus == 1; let lto = cx.sess().lto(); |
