diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2020-01-05 02:10:23 +0100 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2020-01-09 22:36:15 +0100 |
| commit | f45758cddc962248dc46d8c051f9f3a73ef50c14 (patch) | |
| tree | e38ae992d5f9b8eb5d679361faed58a927dacb64 /src/librustc_codegen_llvm/lib.rs | |
| parent | 59eb49d0da83fff01ae3c63f2e282b953e5f88df (diff) | |
| download | rust-f45758cddc962248dc46d8c051f9f3a73ef50c14.tar.gz rust-f45758cddc962248dc46d8c051f9f3a73ef50c14.zip | |
Compile some CGUs in parallel at the start of codegen
Diffstat (limited to 'src/librustc_codegen_llvm/lib.rs')
| -rw-r--r-- | src/librustc_codegen_llvm/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_codegen_llvm/lib.rs b/src/librustc_codegen_llvm/lib.rs index 35c71a66756..a6168128c4d 100644 --- a/src/librustc_codegen_llvm/lib.rs +++ b/src/librustc_codegen_llvm/lib.rs @@ -19,6 +19,7 @@ #![feature(link_args)] #![feature(static_nobundle)] #![feature(trusted_len)] +#![recursion_limit = "256"] use back::write::{create_informational_target_machine, create_target_machine}; use rustc_span::symbol::Symbol; @@ -108,9 +109,8 @@ impl ExtraBackendMethods for LlvmCodegenBackend { &self, tcx: TyCtxt<'_>, cgu_name: Symbol, - tx: &std::sync::mpsc::Sender<Box<dyn Any + Send>>, - ) { - base::compile_codegen_unit(tcx, cgu_name, tx); + ) -> (ModuleCodegen<ModuleLlvm>, u64) { + base::compile_codegen_unit(tcx, cgu_name) } fn target_machine_factory( &self, |
