From cb285e64fa044db63127a693968aa26fe15850cd Mon Sep 17 00:00:00 2001 From: Mihail Mihov Date: Thu, 16 May 2024 14:28:20 +0300 Subject: [PATCH] Remove `LIBCLAD_TIMING` environment variable closes #790 --- tools/ClangPlugin.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/ClangPlugin.cpp b/tools/ClangPlugin.cpp index 4bd485524..037fd4c5d 100644 --- a/tools/ClangPlugin.cpp +++ b/tools/ClangPlugin.cpp @@ -195,11 +195,9 @@ namespace clad { // derive the collected functions #if CLANG_VERSION_MAJOR > 11 - bool WantTiming = - getenv("LIBCLAD_TIMING") || m_CI.getCodeGenOpts().TimePasses; + bool WantTiming = m_CI.getCodeGenOpts().TimePasses; #else - bool WantTiming = - getenv("LIBCLAD_TIMING") || m_CI.getFrontendOpts().ShowTimers; + bool WantTiming = m_CI.getFrontendOpts().ShowTimers; #endif auto DFI = m_DFC.Find(request);