about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/lib.rs
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2020-10-10 15:20:35 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2020-10-10 15:20:35 +0200
commitf141acf0678139ac31375d02feebcc2be220715b (patch)
treea3968278deb2a283acf8bb6718f67f940ee31baf /compiler/rustc_codegen_llvm/src/lib.rs
parent69f45cd96517b4e380044b7d4593899e77afc0ae (diff)
downloadrust-f141acf0678139ac31375d02feebcc2be220715b.tar.gz
rust-f141acf0678139ac31375d02feebcc2be220715b.zip
Move finalize_session_directory call out of cg_llvm
This causes it to be called even when passing `-Zno-link`, when linking
fails or when neither `--emit link` nor `--emit metadata` is used.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/lib.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/lib.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_codegen_llvm/src/lib.rs b/compiler/rustc_codegen_llvm/src/lib.rs
index b3328deebe8..4a4830552f8 100644
--- a/compiler/rustc_codegen_llvm/src/lib.rs
+++ b/compiler/rustc_codegen_llvm/src/lib.rs
@@ -325,10 +325,6 @@ impl CodegenBackend for LlvmCodegenBackend {
             );
         });
 
-        // Now that we won't touch anything in the incremental compilation directory
-        // any more, we can finalize it (which involves renaming it)
-        rustc_incremental::finalize_session_directory(sess, codegen_results.crate_hash);
-
         sess.time("llvm_dump_timing_file", || {
             if sess.opts.debugging_opts.llvm_time_trace {
                 llvm_util::time_trace_profiler_finish("llvm_timings.json");