From b84fb5b15ea4b7463dfdcc06194ccf3a8083672e Mon Sep 17 00:00:00 2001 From: Cameron McCormack Date: Mon, 7 Oct 2019 16:17:32 +1100 Subject: Don't always output translation_unit timer. --- src/ir/context.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ir/context.rs b/src/ir/context.rs index 50f1ef5b..292383f5 100644 --- a/src/ir/context.rs +++ b/src/ir/context.rs @@ -553,7 +553,8 @@ impl BindgenContext { clang_sys::CXTranslationUnit_DetailedPreprocessingRecord; let translation_unit = { - let _t = Timer::new("translation_unit"); + let _t = Timer::new("translation_unit") + .with_output(options.time_phases); let clang_args = if explicit_target { Cow::Borrowed(&options.clang_args) } else { -- cgit v1.2.3