Skip to content

Commit

Permalink
Remove LIBCLAD_TIMING environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailMihov committed May 17, 2024
1 parent 5fa1c55 commit cb285e6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tools/ClangPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cb285e6

Please sign in to comment.