mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-19 06:24:51 +08:00
Add new macro _RELEASE_BUILD_WITH_REGKEYS
Change-Id: I679a17e99d7928b3caf10f80a581fb386aaf7751
This commit is contained in:
committed by
sys_ocldev
parent
6f26ced3b5
commit
571babf1d5
@@ -36,6 +36,10 @@ if(TR_DEPRECATED)
|
||||
add_definitions(-D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING=1)
|
||||
endif(TR_DEPRECATED)
|
||||
|
||||
if(RELEASE_WITH_REGKEYS)
|
||||
add_definitions(-D_RELEASE_BUILD_WITH_REGKEYS)
|
||||
endif(RELEASE_WITH_REGKEYS)
|
||||
|
||||
if(NOT CMAKE_BUILD_TYPE)
|
||||
message(STATUS "CMAKE_BUILD_TYPE not specified, using Release")
|
||||
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Build type: [Release, ReleaseInternal, Debug]" FORCE)
|
||||
|
||||
@@ -37,7 +37,7 @@ enum class DebugFunctionalityLevel {
|
||||
|
||||
#if defined(_DEBUG)
|
||||
constexpr DebugFunctionalityLevel globalDebugFunctionalityLevel = DebugFunctionalityLevel::Full;
|
||||
#elif defined(_RELEASE_INTERNAL)
|
||||
#elif defined(_RELEASE_INTERNAL) || defined(_RELEASE_BUILD_WITH_REGKEYS)
|
||||
constexpr DebugFunctionalityLevel globalDebugFunctionalityLevel = DebugFunctionalityLevel::RegKeys;
|
||||
#else
|
||||
constexpr DebugFunctionalityLevel globalDebugFunctionalityLevel = DebugFunctionalityLevel::None;
|
||||
|
||||
Reference in New Issue
Block a user