mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 20:23:01 +00:00
[CMAKE][CONFIGURE] Enable runtime checks on MSVC by default.
Remove RTC switch from configure.cmd, now MSVC runtime checks are supposed to be enabled/disabled via CMake define (-DRUNTIME_CHECKS=1) Prepare for adding more dynamic analysis options
This commit is contained in:
parent
2a6bccb4ce
commit
92dfec219d
9 changed files with 32 additions and 21 deletions
|
@ -44,4 +44,5 @@ set(USERMODE TRUE CACHE BOOL
|
|||
if(MSVC)
|
||||
set(_PREFAST_ FALSE CACHE BOOL
|
||||
"Whether to enable PREFAST while compiling.")
|
||||
option(RUNTIME_CHECKS "Whether to enable runtime checks on MSVC" ON)
|
||||
endif()
|
||||
|
|
|
@ -43,3 +43,7 @@ set(BUILD_MP TRUE CACHE BOOL
|
|||
|
||||
set(NEWSPRINTF FALSE CACHE BOOL
|
||||
"Whether to compile the new sprintf.")
|
||||
|
||||
if(MSVC)
|
||||
option(RUNTIME_CHECKS "Whether to enable runtime checks on MSVC" ON)
|
||||
endif()
|
||||
|
|
|
@ -83,9 +83,12 @@ set(_PREFAST_ FALSE CACHE BOOL
|
|||
"Whether to enable PREFAST while compiling.")
|
||||
set(_VS_ANALYZE_ FALSE CACHE BOOL
|
||||
"Whether to enable static analysis while compiling.")
|
||||
else()
|
||||
set(STACK_PROTECTOR FALSE CACHE BOOL
|
||||
"Whether to enbable the GCC stack checker while compiling")
|
||||
|
||||
option(RUNTIME_CHECKS "Whether to enable runtime checks on MSVC" ON)
|
||||
endif()
|
||||
|
||||
if(GCC)
|
||||
option(STACK_PROTECTOR "Whether to enable the GCC stack checker while compiling" OFF)
|
||||
endif()
|
||||
|
||||
set(USE_DUMMY_PSEH FALSE CACHE BOOL
|
||||
|
|
|
@ -151,10 +151,6 @@ if(MSVC_IDE AND (NOT DEFINED USE_FOLDER_STRUCTURE))
|
|||
set(USE_FOLDER_STRUCTURE TRUE)
|
||||
endif()
|
||||
|
||||
if(NOT DEFINED RUNTIME_CHECKS)
|
||||
set(RUNTIME_CHECKS FALSE)
|
||||
endif()
|
||||
|
||||
if(RUNTIME_CHECKS)
|
||||
add_definitions(-D__RUNTIME_CHECKS__)
|
||||
add_compile_flags("/RTC1")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue