From f70723d3e5be910983b630dad32b2a08ec77f80e Mon Sep 17 00:00:00 2001 From: Bruce Forstall Date: Tue, 8 Jun 2021 10:05:29 -0700 Subject: [PATCH] Distinguish Debug and Checked builds in version resource (#53847) In the Win32 version resource, this changes the "Comment" field from: ``` Flavor=Checked ``` to: ``` Flavor=Debug ``` It also properly sets `BUILDENV_DEBUG=1` for debug builds (only used in exactly one place: gc.cpp). --- eng/native/configurecompiler.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eng/native/configurecompiler.cmake b/eng/native/configurecompiler.cmake index 9a6832c90cf..99a8013d7cf 100644 --- a/eng/native/configurecompiler.cmake +++ b/eng/native/configurecompiler.cmake @@ -43,7 +43,8 @@ set(CMAKE_EXE_LINKER_FLAGS_DEBUG "") set(CMAKE_EXE_LINKER_FLAGS_DEBUG "") set(CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO "") -add_compile_definitions("$<$,$>:DEBUG;_DEBUG;_DBG;URTBLDENV_FRIENDLY=Checked;BUILDENV_CHECKED=1>") +add_compile_definitions("$<$:DEBUG;_DEBUG;_DBG;URTBLDENV_FRIENDLY=Debug;BUILDENV_DEBUG=1>") +add_compile_definitions("$<$:DEBUG;_DEBUG;_DBG;URTBLDENV_FRIENDLY=Checked;BUILDENV_CHECKED=1>") add_compile_definitions("$<$,$>:NDEBUG;URTBLDENV_FRIENDLY=Retail>") if (MSVC) -- GitLab