diff --git a/test/Performance/Perf1 b/test/Performance/Perf1 index 47bbe6626..2d8c81cf9 100644 --- a/test/Performance/Perf1 +++ b/test/Performance/Perf1 @@ -1,4 +1,4 @@ -// RUN: time LIBCLAD_TIMING=1 %cladclang %s -O3 -I%S/../../include -std=c++11 -oPerf1.out 2>&1 | FileCheck %s +// RUN: %cladclang %s -O3 -ftime-report -I%S/../../include -std=c++11 -oPerf1.out 2>&1 | FileCheck %s // RUN: ./Perf1.out | FileCheck -check-prefix=CHECK-EXEC %s //#define COMPILER_TEST_ONLY diff --git a/test/Performance/Perf2 b/test/Performance/Perf2 index fced9c919..6cc76ecc3 100644 --- a/test/Performance/Perf2 +++ b/test/Performance/Perf2 @@ -1,4 +1,4 @@ -// RUN: time LIBCLAD_TIMING=1 %cladclang %s -O3 -I%S/../../include -std=c++11 -oPerf1.out 2>&1 | FileCheck %s +// RUN: %cladclang %s -O3 -ftime-report -I%S/../../include -std=c++11 -oPerf1.out 2>&1 | FileCheck %s // RUN: ./Perf1.out | FileCheck -check-prefix=CHECK-EXEC %s //#define COMPILER_TEST_ONLY 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);