From 5888a2283e0b47f2a8991d2548eb8e4d4c156dea Mon Sep 17 00:00:00 2001 From: Lazydodo Date: Thu, 22 Aug 2019 10:20:40 -0600 Subject: Cmake/MSVC: Enable Edit and Continue for debug builds. This change switches the debug symbol format from /Zi to /ZI for debug builds of blender, allowing Edit and Continue to work. This allows limited [1] code changes in the debugger without having to stop the process and recompile a new binary leading to improved developer productivity. All MSVC versions we support support this flag, Clang on windows does not mind the /ZI flag, but doesn't currently emit the required information to have this feature work. [1] https://docs.microsoft.com/en-us/visualstudio/debugger/supported-code-changes-cpp --- build_files/cmake/platform/platform_win32.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build_files') diff --git a/build_files/cmake/platform/platform_win32.cmake b/build_files/cmake/platform/platform_win32.cmake index 42ac285f88d..b2277c440fe 100644 --- a/build_files/cmake/platform/platform_win32.cmake +++ b/build_files/cmake/platform/platform_win32.cmake @@ -135,8 +135,8 @@ else() set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /nologo /J /Gd /MP /bigobj") endif() -set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd") -set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /MTd") +set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd /ZI") +set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /MTd /ZI") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT") set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /MT") set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} /MT") -- cgit v1.2.3