Skip to content

Commit

Permalink
log optionally enabled features
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbaug committed Apr 12, 2018
1 parent 8fa2ea4 commit b6f74f0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
endif()

# cliprof Executable (optional)
set( BUILD_CLIPROF CACHE BOOL "Build cliprof Executable" )
if( BUILD_CLIPROF )
set( ENABLE_CLIPROF CACHE BOOL "Enable cliprof Support and Build the Executable" )
if( ENABLE_CLIPROF )
add_definitions("-DCLINTERCEPT_CLIPROF")
add_subdirectory(cliprof)
endif()
Expand Down
17 changes: 17 additions & 0 deletions Src/intercept.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,23 @@ bool CLIntercept::init()
log( "CLIntercept git refspec: " + std::string(sc_GitRefSpec) + "\n" );
log( "CLInterecpt git hash: " + std::string(sc_GitHash) + "\n" );
#endif
log( "CLIntercept optional features: "
#if defined(CLINTERCEPT_CLIPROF) || !defined(_WIN32) // extra code only needed for Windows
"cliprof(supported) "
#else
"cliprof(NOT supported) "
#endif
#if defined(USE_ITT)
"ITT tracing(supported) "
#else
"ITT tracing(NOT supported) "
#endif
#if defined(USE_MDAPI)
"MDAPI(supported) "
#else
"MDAPI(NOT supported) "
#endif
"\n" );
#if defined(_WIN32)
log( "CLIntercept environment variable prefix: " + std::string( OS::Services_Common::ENV_PREFIX ) + "\n" );
log( "CLIntercept registry key: " + std::string( OS::Services_Common::REGISTRY_KEY ) + "\n" );
Expand Down

0 comments on commit b6f74f0

Please sign in to comment.