Skip to content

Commit b6f74f0

Browse files
committed
log optionally enabled features
1 parent 8fa2ea4 commit b6f74f0

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
5353
endif()
5454

5555
# cliprof Executable (optional)
56-
set( BUILD_CLIPROF CACHE BOOL "Build cliprof Executable" )
57-
if( BUILD_CLIPROF )
56+
set( ENABLE_CLIPROF CACHE BOOL "Enable cliprof Support and Build the Executable" )
57+
if( ENABLE_CLIPROF )
5858
add_definitions("-DCLINTERCEPT_CLIPROF")
5959
add_subdirectory(cliprof)
6060
endif()

Src/intercept.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,23 @@ bool CLIntercept::init()
452452
log( "CLIntercept git refspec: " + std::string(sc_GitRefSpec) + "\n" );
453453
log( "CLInterecpt git hash: " + std::string(sc_GitHash) + "\n" );
454454
#endif
455+
log( "CLIntercept optional features: "
456+
#if defined(CLINTERCEPT_CLIPROF) || !defined(_WIN32) // extra code only needed for Windows
457+
"cliprof(supported) "
458+
#else
459+
"cliprof(NOT supported) "
460+
#endif
461+
#if defined(USE_ITT)
462+
"ITT tracing(supported) "
463+
#else
464+
"ITT tracing(NOT supported) "
465+
#endif
466+
#if defined(USE_MDAPI)
467+
"MDAPI(supported) "
468+
#else
469+
"MDAPI(NOT supported) "
470+
#endif
471+
"\n" );
455472
#if defined(_WIN32)
456473
log( "CLIntercept environment variable prefix: " + std::string( OS::Services_Common::ENV_PREFIX ) + "\n" );
457474
log( "CLIntercept registry key: " + std::string( OS::Services_Common::REGISTRY_KEY ) + "\n" );

0 commit comments

Comments
 (0)