We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a69110 commit 0b5ca78Copy full SHA for 0b5ca78
src/librustc_trans/back/write.rs
@@ -851,7 +851,9 @@ pub fn run_passes(sess: &Session,
851
852
// FIXME: time_llvm_passes support - does this use a global context or
853
// something?
854
- //if sess.time_llvm_passes() { llvm::LLVMRustPrintPassTimings(); }
+ if sess.opts.cg.codegen_units == 1 && sess.time_llvm_passes() {
855
+ unsafe { llvm::LLVMRustPrintPassTimings(); }
856
+ }
857
}
858
859
struct WorkItem {
0 commit comments