aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/global_flags.compiler.msvc.cmake
diff options
context:
space:
mode:
authorrobot-ya-builder <robot-ya-builder@yandex-team.com>2023-03-20 16:31:37 +0300
committerrobot-ya-builder <robot-ya-builder@yandex-team.com>2023-03-20 16:31:37 +0300
commitc8b7f84d9c4a39d7f576931850f269c560906f2b (patch)
tree3e72ec19053d46124efc0de0bc96c924ee15a30a /cmake/global_flags.compiler.msvc.cmake
parent2885c952c6522d0795d8cf72cccfe4d22c04e462 (diff)
downloadydb-c8b7f84d9c4a39d7f576931850f269c560906f2b.tar.gz
External build system generator release 22
Update tools: yexport
Diffstat (limited to 'cmake/global_flags.compiler.msvc.cmake')
-rw-r--r--cmake/global_flags.compiler.msvc.cmake7
1 files changed, 5 insertions, 2 deletions
diff --git a/cmake/global_flags.compiler.msvc.cmake b/cmake/global_flags.compiler.msvc.cmake
index 4c08895cde..1f22f3aa5d 100644
--- a/cmake/global_flags.compiler.msvc.cmake
+++ b/cmake/global_flags.compiler.msvc.cmake
@@ -138,5 +138,8 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${_MSVC_COMMON_C_CXX_FLAGS} \
/std:c++latest \
/Zc:__cplusplus \
")
-set(CMAKE_CXX_FLAGS_DEBUG "/Z7")
-set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "/Z7")
+
+set(CMAKE_CXX_FLAGS_DEBUG "/Z7 /Ob0 /Od /D_DEBUG")
+set(CMAKE_CXX_FLAGS_MINSIZEREL "/O1 /Ob1 /DNDEBUG")
+set(CMAKE_CXX_FLAGS_RELEASE "/Ox /Ob2 /Oi /DNDEBUG")
+set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "/Z7 /Ox /Ob1 /DNDEBUG")